requiresthat 2025.6.18.1__py3-none-any.whl → 2025.6.18.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.
- {requiresthat-2025.6.18.1.dist-info → requiresthat-2025.6.18.2.dist-info}/METADATA +6 -4
- {requiresthat-2025.6.18.1.dist-info → requiresthat-2025.6.18.2.dist-info}/RECORD +4 -4
- {requiresthat-2025.6.18.1.dist-info → requiresthat-2025.6.18.2.dist-info}/WHEEL +0 -0
- {requiresthat-2025.6.18.1.dist-info → requiresthat-2025.6.18.2.dist-info}/top_level.txt +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: requiresthat
|
3
|
-
Version: 2025.6.18.
|
3
|
+
Version: 2025.6.18.2
|
4
4
|
Summary: Support for requirements-assisted development
|
5
5
|
Author-email: Ann T Ropea <bedhanger@gmx.de>
|
6
6
|
License-Expression: MIT
|
@@ -35,12 +35,14 @@ Example usage
|
|
35
35
|
X = C(data='spam')
|
36
36
|
X.method()
|
37
37
|
|
38
|
-
The ``that`` can be almost any valid Python statement which can be evaluated
|
39
|
-
|
38
|
+
The ``that`` can be almost any valid Python statement which can be evaluated and whose veracity can
|
39
|
+
be asserted, and the result thereof will decide whether or not the method fires/will be considered a
|
40
|
+
success.
|
40
41
|
|
41
42
|
The parameter ``when`` decides if the condition is a-priori, post-mortem, or before-and-after.
|
42
43
|
The default is a-priori, meaning a precondition. Note that before-and-after does *not* mean during;
|
43
44
|
you cannot mandate an invariant this way!
|
44
45
|
|
45
46
|
``RequirementNotFulfilledError`` is the exception you have to deal with in case a condition is not
|
46
|
-
met.
|
47
|
+
met. ``NoCallableConstructError`` gets raised should you apply the decorator to a construct that is
|
48
|
+
not callable.
|
@@ -2,7 +2,7 @@ requiresthat/__init__.py,sha256=VTyJru4K2_e7UEa0od6kXU7M8ovfD176GXEXqtNf-nY,154
|
|
2
2
|
requiresthat/_exceptions.py,sha256=-Q9lhvHnSapP_UGMAnlXxwDaGcxagULIe5oP5h8a2IU,1275
|
3
3
|
requiresthat/_requires.py,sha256=5hQMT5T5VZuQj6W13108j_cedx4wKzJ7Kt4xseOR4cI,2447
|
4
4
|
requiresthat/_when.py,sha256=VoGuvoG9WDEMIPeKnxAsjMTaCMhgSszf4xxa1vLn5aU,299
|
5
|
-
requiresthat-2025.6.18.
|
6
|
-
requiresthat-2025.6.18.
|
7
|
-
requiresthat-2025.6.18.
|
8
|
-
requiresthat-2025.6.18.
|
5
|
+
requiresthat-2025.6.18.2.dist-info/METADATA,sha256=ap9RNE7_6pymDKgOAS9E-a8RbgvPFD5SQBMUC2c6gCk,1709
|
6
|
+
requiresthat-2025.6.18.2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
7
|
+
requiresthat-2025.6.18.2.dist-info/top_level.txt,sha256=mUgMTpAG75GYtt5_rVajUyWp-O_1VrrkqRo_hY9L9So,13
|
8
|
+
requiresthat-2025.6.18.2.dist-info/RECORD,,
|
File without changes
|
File without changes
|