eventsourcing 9.4.0a2__py3-none-any.whl → 9.4.0a3__py3-none-any.whl

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.

@@ -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
  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/)
@@ -16,11 +16,11 @@ eventsourcing/system.py,sha256=7cM3FBdvr64ZK_xItks1MW2yg1o0OZ1vtKtznFFB_4g,47114
16
16
  eventsourcing/tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
17
17
  eventsourcing/tests/application.py,sha256=Q_NFgRSRWovMcyQOZ8U1AoiIsnEHf_zCpHcP0ADaYvs,17369
18
18
  eventsourcing/tests/domain.py,sha256=lHSlY6jIoSeqlcPSbrrozEPUJGvJ8bgPrznlmzTxn2w,3254
19
- eventsourcing/tests/persistence.py,sha256=uink4W_CjeAlaSfzqRBuaDH2fYKAlZ1rvL7lhyUobp8,55553
19
+ eventsourcing/tests/persistence.py,sha256=5y2675k-e-A3JjPVw4EVNSF-Oem96CVWMOMft_1NK-c,56601
20
20
  eventsourcing/tests/postgres_utils.py,sha256=xymcGYasUXeZTBenkHz-ykD8HtrFjVM1Z7-qRrH6OQk,1364
21
21
  eventsourcing/utils.py,sha256=QPlHhltgEcL80RWcPJ_PTygzDwhfIowUS3Z5taw0_cA,8228
22
- eventsourcing-9.4.0a2.dist-info/AUTHORS,sha256=8aHOM4UbNZcKlD-cHpFRcM6RWyCqtwtxRev6DeUgVRs,137
23
- eventsourcing-9.4.0a2.dist-info/LICENSE,sha256=CQEQzcZO8AWXL5i3hIo4yVKrYjh2FBz6hCM7kpXWpw4,1512
24
- eventsourcing-9.4.0a2.dist-info/METADATA,sha256=NE7vnBA04-Huk9ZpUL8f3E-W2_BJhFm4V_uX7ZLvX_o,9874
25
- eventsourcing-9.4.0a2.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
26
- eventsourcing-9.4.0a2.dist-info/RECORD,,
22
+ eventsourcing-9.4.0a3.dist-info/AUTHORS,sha256=8aHOM4UbNZcKlD-cHpFRcM6RWyCqtwtxRev6DeUgVRs,137
23
+ eventsourcing-9.4.0a3.dist-info/LICENSE,sha256=CQEQzcZO8AWXL5i3hIo4yVKrYjh2FBz6hCM7kpXWpw4,1512
24
+ eventsourcing-9.4.0a3.dist-info/METADATA,sha256=a4kiNuw1ATJbhUMa-UbYnd5lDI6IH_qBtKuhCeAM7E0,9885
25
+ eventsourcing-9.4.0a3.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
26
+ eventsourcing-9.4.0a3.dist-info/RECORD,,