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.
- {eventsourcing-9.4.0a2 → eventsourcing-9.4.0a3}/PKG-INFO +2 -2
- {eventsourcing-9.4.0a2 → eventsourcing-9.4.0a3}/README.md +1 -1
- {eventsourcing-9.4.0a2 → eventsourcing-9.4.0a3}/eventsourcing/tests/persistence.py +27 -0
- {eventsourcing-9.4.0a2 → eventsourcing-9.4.0a3}/pyproject.toml +1 -1
- {eventsourcing-9.4.0a2 → eventsourcing-9.4.0a3}/AUTHORS +0 -0
- {eventsourcing-9.4.0a2 → eventsourcing-9.4.0a3}/LICENSE +0 -0
- {eventsourcing-9.4.0a2 → eventsourcing-9.4.0a3}/eventsourcing/__init__.py +0 -0
- {eventsourcing-9.4.0a2 → eventsourcing-9.4.0a3}/eventsourcing/application.py +0 -0
- {eventsourcing-9.4.0a2 → eventsourcing-9.4.0a3}/eventsourcing/cipher.py +0 -0
- {eventsourcing-9.4.0a2 → eventsourcing-9.4.0a3}/eventsourcing/compressor.py +0 -0
- {eventsourcing-9.4.0a2 → eventsourcing-9.4.0a3}/eventsourcing/cryptography.py +0 -0
- {eventsourcing-9.4.0a2 → eventsourcing-9.4.0a3}/eventsourcing/dispatch.py +0 -0
- {eventsourcing-9.4.0a2 → eventsourcing-9.4.0a3}/eventsourcing/domain.py +0 -0
- {eventsourcing-9.4.0a2 → eventsourcing-9.4.0a3}/eventsourcing/interface.py +0 -0
- {eventsourcing-9.4.0a2 → eventsourcing-9.4.0a3}/eventsourcing/persistence.py +0 -0
- {eventsourcing-9.4.0a2 → eventsourcing-9.4.0a3}/eventsourcing/popo.py +0 -0
- {eventsourcing-9.4.0a2 → eventsourcing-9.4.0a3}/eventsourcing/postgres.py +0 -0
- {eventsourcing-9.4.0a2 → eventsourcing-9.4.0a3}/eventsourcing/projection.py +0 -0
- {eventsourcing-9.4.0a2 → eventsourcing-9.4.0a3}/eventsourcing/py.typed +0 -0
- {eventsourcing-9.4.0a2 → eventsourcing-9.4.0a3}/eventsourcing/sqlite.py +0 -0
- {eventsourcing-9.4.0a2 → eventsourcing-9.4.0a3}/eventsourcing/system.py +0 -0
- {eventsourcing-9.4.0a2 → eventsourcing-9.4.0a3}/eventsourcing/tests/__init__.py +0 -0
- {eventsourcing-9.4.0a2 → eventsourcing-9.4.0a3}/eventsourcing/tests/application.py +0 -0
- {eventsourcing-9.4.0a2 → eventsourcing-9.4.0a3}/eventsourcing/tests/domain.py +0 -0
- {eventsourcing-9.4.0a2 → eventsourcing-9.4.0a3}/eventsourcing/tests/postgres_utils.py +0 -0
- {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.
|
|
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
|
-
[](https://github.com/pyeventsourcing/eventsourcing)
|
|
38
|
+
[](https://github.com/pyeventsourcing/eventsourcing)
|
|
39
39
|
[](https://coveralls.io/github/pyeventsourcing/eventsourcing?branch=main)
|
|
40
40
|
[](https://eventsourcing.readthedocs.io/en/stable/)
|
|
41
41
|
[](https://pypi.org/project/eventsourcing/)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
[](https://github.com/pyeventsourcing/eventsourcing)
|
|
1
|
+
[](https://github.com/pyeventsourcing/eventsourcing)
|
|
2
2
|
[](https://coveralls.io/github/pyeventsourcing/eventsourcing?branch=main)
|
|
3
3
|
[](https://eventsourcing.readthedocs.io/en/stable/)
|
|
4
4
|
[](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
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|