eventsourcing 9.4.0a2__tar.gz → 9.4.0a3__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of eventsourcing might be problematic. Click here for more details.

Files changed (26) hide show
  1. {eventsourcing-9.4.0a2 → eventsourcing-9.4.0a3}/PKG-INFO +2 -2
  2. {eventsourcing-9.4.0a2 → eventsourcing-9.4.0a3}/README.md +1 -1
  3. {eventsourcing-9.4.0a2 → eventsourcing-9.4.0a3}/eventsourcing/tests/persistence.py +27 -0
  4. {eventsourcing-9.4.0a2 → eventsourcing-9.4.0a3}/pyproject.toml +1 -1
  5. {eventsourcing-9.4.0a2 → eventsourcing-9.4.0a3}/AUTHORS +0 -0
  6. {eventsourcing-9.4.0a2 → eventsourcing-9.4.0a3}/LICENSE +0 -0
  7. {eventsourcing-9.4.0a2 → eventsourcing-9.4.0a3}/eventsourcing/__init__.py +0 -0
  8. {eventsourcing-9.4.0a2 → eventsourcing-9.4.0a3}/eventsourcing/application.py +0 -0
  9. {eventsourcing-9.4.0a2 → eventsourcing-9.4.0a3}/eventsourcing/cipher.py +0 -0
  10. {eventsourcing-9.4.0a2 → eventsourcing-9.4.0a3}/eventsourcing/compressor.py +0 -0
  11. {eventsourcing-9.4.0a2 → eventsourcing-9.4.0a3}/eventsourcing/cryptography.py +0 -0
  12. {eventsourcing-9.4.0a2 → eventsourcing-9.4.0a3}/eventsourcing/dispatch.py +0 -0
  13. {eventsourcing-9.4.0a2 → eventsourcing-9.4.0a3}/eventsourcing/domain.py +0 -0
  14. {eventsourcing-9.4.0a2 → eventsourcing-9.4.0a3}/eventsourcing/interface.py +0 -0
  15. {eventsourcing-9.4.0a2 → eventsourcing-9.4.0a3}/eventsourcing/persistence.py +0 -0
  16. {eventsourcing-9.4.0a2 → eventsourcing-9.4.0a3}/eventsourcing/popo.py +0 -0
  17. {eventsourcing-9.4.0a2 → eventsourcing-9.4.0a3}/eventsourcing/postgres.py +0 -0
  18. {eventsourcing-9.4.0a2 → eventsourcing-9.4.0a3}/eventsourcing/projection.py +0 -0
  19. {eventsourcing-9.4.0a2 → eventsourcing-9.4.0a3}/eventsourcing/py.typed +0 -0
  20. {eventsourcing-9.4.0a2 → eventsourcing-9.4.0a3}/eventsourcing/sqlite.py +0 -0
  21. {eventsourcing-9.4.0a2 → eventsourcing-9.4.0a3}/eventsourcing/system.py +0 -0
  22. {eventsourcing-9.4.0a2 → eventsourcing-9.4.0a3}/eventsourcing/tests/__init__.py +0 -0
  23. {eventsourcing-9.4.0a2 → eventsourcing-9.4.0a3}/eventsourcing/tests/application.py +0 -0
  24. {eventsourcing-9.4.0a2 → eventsourcing-9.4.0a3}/eventsourcing/tests/domain.py +0 -0
  25. {eventsourcing-9.4.0a2 → eventsourcing-9.4.0a3}/eventsourcing/tests/postgres_utils.py +0 -0
  26. {eventsourcing-9.4.0a2 → eventsourcing-9.4.0a3}/eventsourcing/utils.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: eventsourcing
3
- Version: 9.4.0a2
3
+ Version: 9.4.0a3
4
4
  Summary: Event sourcing in Python
5
5
  Home-page: https://github.com/pyeventsourcing/eventsourcing
6
6
  License: BSD 3-Clause
@@ -35,7 +35,7 @@ Requires-Dist: typing_extensions
35
35
  Project-URL: Repository, https://github.com/pyeventsourcing/eventsourcing
36
36
  Description-Content-Type: text/markdown
37
37
 
38
- [![Build Status](https://github.com/pyeventsourcing/eventsourcing/actions/workflows/runtests.yaml/badge.svg)](https://github.com/pyeventsourcing/eventsourcing)
38
+ [![Build Status](https://github.com/pyeventsourcing/eventsourcing/actions/workflows/runtests.yaml/badge.svg?branch=9.4)](https://github.com/pyeventsourcing/eventsourcing)
39
39
  [![Coverage Status](https://coveralls.io/repos/github/pyeventsourcing/eventsourcing/badge.svg?branch=main)](https://coveralls.io/github/pyeventsourcing/eventsourcing?branch=main)
40
40
  [![Documentation Status](https://readthedocs.org/projects/eventsourcing/badge/?version=stable)](https://eventsourcing.readthedocs.io/en/stable/)
41
41
  [![Latest Release](https://badge.fury.io/py/eventsourcing.svg)](https://pypi.org/project/eventsourcing/)
@@ -1,4 +1,4 @@
1
- [![Build Status](https://github.com/pyeventsourcing/eventsourcing/actions/workflows/runtests.yaml/badge.svg)](https://github.com/pyeventsourcing/eventsourcing)
1
+ [![Build Status](https://github.com/pyeventsourcing/eventsourcing/actions/workflows/runtests.yaml/badge.svg?branch=9.4)](https://github.com/pyeventsourcing/eventsourcing)
2
2
  [![Coverage Status](https://coveralls.io/repos/github/pyeventsourcing/eventsourcing/badge.svg?branch=main)](https://coveralls.io/github/pyeventsourcing/eventsourcing?branch=main)
3
3
  [![Documentation Status](https://readthedocs.org/projects/eventsourcing/badge/?version=stable)](https://eventsourcing.readthedocs.io/en/stable/)
4
4
  [![Latest Release](https://badge.fury.io/py/eventsourcing.svg)](https://pypi.org/project/eventsourcing/)
@@ -707,6 +707,33 @@ class ApplicationRecorderTestCase(TestCase, ABC):
707
707
  stored_event3.originator_id, notifications[0].originator_id
708
708
  )
709
709
 
710
+ # Start a subscription, call stop() during iteration.
711
+ with recorder.subscribe(gt=None) as subscription:
712
+
713
+ # Receive events from the subscription.
714
+ for i, _ in enumerate(subscription):
715
+ subscription.stop()
716
+ # Shouldn't get here twice...
717
+ self.assertLess(i, 1, "Got here twice")
718
+
719
+ # Start a subscription, call stop() before iteration.
720
+ subscription = recorder.subscribe(gt=None)
721
+ with subscription:
722
+ subscription.stop()
723
+ # Receive events from the subscription.
724
+ for _ in subscription:
725
+ # Shouldn't get here...
726
+ self.fail("Got here")
727
+
728
+ # Start a subscription, call stop() before entering context manager.
729
+ subscription = recorder.subscribe(gt=None)
730
+ subscription.stop()
731
+ with subscription:
732
+ # Receive events from the subscription.
733
+ for _ in subscription:
734
+ # Shouldn't get here...
735
+ self.fail("Got here")
736
+
710
737
  def close_db_connection(self, *args: Any) -> None:
711
738
  """"""
712
739
 
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "eventsourcing"
3
- version = "9.4.0a2"
3
+ version = "9.4.0a3"
4
4
 
5
5
  description = "Event sourcing in Python"
6
6
  authors = [
File without changes
File without changes