eventsourcing 9.3.1__py3-none-any.whl → 9.3.2__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.
- eventsourcing/application.py +3 -1
- eventsourcing/tests/domain_tests/test_aggregate.py +15 -15
- {eventsourcing-9.3.1.dist-info → eventsourcing-9.3.2.dist-info}/METADATA +1 -1
- {eventsourcing-9.3.1.dist-info → eventsourcing-9.3.2.dist-info}/RECORD +7 -7
- {eventsourcing-9.3.1.dist-info → eventsourcing-9.3.2.dist-info}/AUTHORS +0 -0
- {eventsourcing-9.3.1.dist-info → eventsourcing-9.3.2.dist-info}/LICENSE +0 -0
- {eventsourcing-9.3.1.dist-info → eventsourcing-9.3.2.dist-info}/WHEEL +0 -0
eventsourcing/application.py
CHANGED
|
@@ -910,7 +910,9 @@ class Application:
|
|
|
910
910
|
TApplication = TypeVar("TApplication", bound=Application)
|
|
911
911
|
|
|
912
912
|
|
|
913
|
-
@deprecated(
|
|
913
|
+
@deprecated(
|
|
914
|
+
"AggregateNotFound is deprecated, use AggregateNotFoundError instead", category=None
|
|
915
|
+
)
|
|
914
916
|
class AggregateNotFound(EventSourcingError): # noqa: N818
|
|
915
917
|
pass
|
|
916
918
|
|
|
@@ -1177,24 +1177,24 @@ class TestBankAccount(TestCase):
|
|
|
1177
1177
|
|
|
1178
1178
|
class TestAggregateNotFound(TestCase):
|
|
1179
1179
|
def test(self):
|
|
1180
|
-
#
|
|
1181
|
-
|
|
1182
|
-
|
|
1180
|
+
# Check we didn't break any code.
|
|
1181
|
+
try:
|
|
1182
|
+
raise AggregateNotFoundError
|
|
1183
|
+
except AggregateNotFound:
|
|
1184
|
+
pass
|
|
1183
1185
|
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
)
|
|
1186
|
+
# # Verify deprecation warning.
|
|
1187
|
+
# with warnings.catch_warnings(record=True) as w:
|
|
1188
|
+
# AggregateNotFound()
|
|
1189
|
+
#
|
|
1190
|
+
# self.assertEqual(len(w), 1)
|
|
1191
|
+
# self.assertIs(w[-1].category, DeprecationWarning)
|
|
1192
|
+
# self.assertEqual(
|
|
1193
|
+
# "AggregateNotFound is deprecated, use AggregateNotFoundError instead",
|
|
1194
|
+
# w[-1].message.args[0],
|
|
1195
|
+
# )
|
|
1190
1196
|
|
|
1191
1197
|
# Verify no deprecation warning.
|
|
1192
1198
|
with warnings.catch_warnings(record=True) as w:
|
|
1193
1199
|
AggregateNotFoundError()
|
|
1194
1200
|
self.assertEqual(len(w), 0)
|
|
1195
|
-
|
|
1196
|
-
# Check we didn't break any code.
|
|
1197
|
-
try:
|
|
1198
|
-
raise AggregateNotFoundError
|
|
1199
|
-
except AggregateNotFound:
|
|
1200
|
-
pass
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
eventsourcing/__init__.py,sha256=st2H3shrhTk5rqoUeZHUW8XD9iOX9tGGtQFWr2HGYmo,26
|
|
2
|
-
eventsourcing/application.py,sha256=
|
|
2
|
+
eventsourcing/application.py,sha256=c5aTi86mBOiQicmqEUsqseAeL7CwDie3G9e0Y8kWLYM,36324
|
|
3
3
|
eventsourcing/cipher.py,sha256=NJcVfZdSlCER6xryM4zVoY3cmKstF-iSSniB4jmpaKg,3200
|
|
4
4
|
eventsourcing/compressor.py,sha256=IdvrJUB9B2td871oifInv4lGXmHwYL9d69MbHHCr7uI,421
|
|
5
5
|
eventsourcing/dispatch.py,sha256=yYSpT-jqc6l_wTdqEnfPJJfvsZN2Ta8g2anrVPWIcqQ,1412
|
|
@@ -114,7 +114,7 @@ eventsourcing/tests/docs_tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5
|
|
|
114
114
|
eventsourcing/tests/docs_tests/test_docs.py,sha256=bxb4xd0PNMRG9X-SeyQ6C7Tq6nAw4MgoC3FdQ3T0rsg,10871
|
|
115
115
|
eventsourcing/tests/domain.py,sha256=lHSlY6jIoSeqlcPSbrrozEPUJGvJ8bgPrznlmzTxn2w,3254
|
|
116
116
|
eventsourcing/tests/domain_tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
117
|
-
eventsourcing/tests/domain_tests/test_aggregate.py,sha256=
|
|
117
|
+
eventsourcing/tests/domain_tests/test_aggregate.py,sha256=XRO4YbFTW0mwJYVJ0hLBOJRyFs28XSyvRxlpkD5pibA,39133
|
|
118
118
|
eventsourcing/tests/domain_tests/test_aggregate_decorators.py,sha256=zky6jmqblM0GKgdhCJjYdSxtEE9MwRcemYaZhqxL1AE,50256
|
|
119
119
|
eventsourcing/tests/domain_tests/test_domainevent.py,sha256=3EGLKnla1aWfKPzMfLCNmh7UtVAztk_ne_Oi0cP7jPU,2782
|
|
120
120
|
eventsourcing/tests/interface_tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -138,8 +138,8 @@ eventsourcing/tests/system_tests/test_system.py,sha256=IRmLBovJ5Ha4KWNVg8efM-0OV
|
|
|
138
138
|
eventsourcing/tests/utils_tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
139
139
|
eventsourcing/tests/utils_tests/test_utils.py,sha256=8HcTk_0_lXyoT307fEmd2utwmOUS_joToUPGFeFnKW8,6486
|
|
140
140
|
eventsourcing/utils.py,sha256=PIWDvoGiKCXsNbR5DirkoJ_svopg80SoH37bqxOcjkU,8247
|
|
141
|
-
eventsourcing-9.3.
|
|
142
|
-
eventsourcing-9.3.
|
|
143
|
-
eventsourcing-9.3.
|
|
144
|
-
eventsourcing-9.3.
|
|
145
|
-
eventsourcing-9.3.
|
|
141
|
+
eventsourcing-9.3.2.dist-info/AUTHORS,sha256=8aHOM4UbNZcKlD-cHpFRcM6RWyCqtwtxRev6DeUgVRs,137
|
|
142
|
+
eventsourcing-9.3.2.dist-info/LICENSE,sha256=bSE_F-T6cQPmMY5LuJC27km_pGB1XCVuUFx1uY0Nueg,1512
|
|
143
|
+
eventsourcing-9.3.2.dist-info/METADATA,sha256=QFafd2jcyxKW5UCb_N5-8M-iZBJKU8YPdk5fOCJYcsQ,9968
|
|
144
|
+
eventsourcing-9.3.2.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
|
145
|
+
eventsourcing-9.3.2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|