punit 1.4.7__tar.gz → 1.4.8__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.
- {punit-1.4.7/src/pUnit.egg-info → punit-1.4.8}/PKG-INFO +7 -1
- {punit-1.4.7 → punit-1.4.8}/README.md +6 -0
- {punit-1.4.7 → punit-1.4.8}/pyproject.toml +1 -1
- {punit-1.4.7 → punit-1.4.8/src/pUnit.egg-info}/PKG-INFO +7 -1
- {punit-1.4.7 → punit-1.4.8}/src/punit/__init__.py +2 -2
- {punit-1.4.7 → punit-1.4.8}/src/punit/__main__.py +5 -0
- {punit-1.4.7 → punit-1.4.8}/src/punit/cli.py +12 -1
- {punit-1.4.7 → punit-1.4.8}/LICENSE +0 -0
- {punit-1.4.7 → punit-1.4.8}/setup.cfg +0 -0
- {punit-1.4.7 → punit-1.4.8}/src/pUnit.egg-info/SOURCES.txt +0 -0
- {punit-1.4.7 → punit-1.4.8}/src/pUnit.egg-info/dependency_links.txt +0 -0
- {punit-1.4.7 → punit-1.4.8}/src/pUnit.egg-info/entry_points.txt +0 -0
- {punit-1.4.7 → punit-1.4.8}/src/pUnit.egg-info/requires.txt +0 -0
- {punit-1.4.7 → punit-1.4.8}/src/pUnit.egg-info/top_level.txt +0 -0
- {punit-1.4.7 → punit-1.4.8}/src/punit/TestResult.py +0 -0
- {punit-1.4.7 → punit-1.4.8}/src/punit/assertions/__init__.py +0 -0
- {punit-1.4.7 → punit-1.4.8}/src/punit/assertions/collections.py +0 -0
- {punit-1.4.7 → punit-1.4.8}/src/punit/assertions/exceptions.py +0 -0
- {punit-1.4.7 → punit-1.4.8}/src/punit/assertions/strings.py +0 -0
- {punit-1.4.7 → punit-1.4.8}/src/punit/discovery/TestModuleDiscovery.py +0 -0
- {punit-1.4.7 → punit-1.4.8}/src/punit/discovery/__init__.py +0 -0
- {punit-1.4.7 → punit-1.4.8}/src/punit/facts/Fact.py +0 -0
- {punit-1.4.7 → punit-1.4.8}/src/punit/facts/FactManager.py +0 -0
- {punit-1.4.7 → punit-1.4.8}/src/punit/facts/__init__.py +0 -0
- {punit-1.4.7 → punit-1.4.8}/src/punit/filters/Filter.py +0 -0
- {punit-1.4.7 → punit-1.4.8}/src/punit/filters/FilterManager.py +0 -0
- {punit-1.4.7 → punit-1.4.8}/src/punit/filters/__init__.py +0 -0
- {punit-1.4.7 → punit-1.4.8}/src/punit/metadata/CallableMetadata.py +0 -0
- {punit-1.4.7 → punit-1.4.8}/src/punit/metadata/__init__.py +0 -0
- {punit-1.4.7 → punit-1.4.8}/src/punit/py.typed +0 -0
- {punit-1.4.7 → punit-1.4.8}/src/punit/reports/HtmlReportGenerator.py +0 -0
- {punit-1.4.7 → punit-1.4.8}/src/punit/reports/JUnitReportGenerator.py +0 -0
- {punit-1.4.7 → punit-1.4.8}/src/punit/reports/JsonReportGenerator.py +0 -0
- {punit-1.4.7 → punit-1.4.8}/src/punit/reports/__init__.py +0 -0
- {punit-1.4.7 → punit-1.4.8}/src/punit/runner.py +0 -0
- {punit-1.4.7 → punit-1.4.8}/src/punit/theories/Theory.py +0 -0
- {punit-1.4.7 → punit-1.4.8}/src/punit/theories/TheoryManager.py +0 -0
- {punit-1.4.7 → punit-1.4.8}/src/punit/theories/__init__.py +0 -0
- {punit-1.4.7 → punit-1.4.8}/src/punit/traits/Trait.py +0 -0
- {punit-1.4.7 → punit-1.4.8}/src/punit/traits/TraitManager.py +0 -0
- {punit-1.4.7 → punit-1.4.8}/src/punit/traits/__init__.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: pUnit
|
|
3
|
-
Version: 1.4.
|
|
3
|
+
Version: 1.4.8
|
|
4
4
|
Summary: A modernized unit-test framework for Python.
|
|
5
5
|
Author-email: Shaun Wilson <mrshaunwilson@msn.com>
|
|
6
6
|
License: MIT License
|
|
@@ -95,6 +95,8 @@ Usage: python3 -m punit [-h|--help]
|
|
|
95
95
|
[-t|--trait [!]NAME[=VALUE]]
|
|
96
96
|
[-w|--working-directory PATH]
|
|
97
97
|
[-n|--no-default-patterns]
|
|
98
|
+
[--no-exitcode]
|
|
99
|
+
[--no-pathfix]
|
|
98
100
|
[-r|--report {junit|json}]
|
|
99
101
|
[-o|--output FILENAME]
|
|
100
102
|
|
|
@@ -127,6 +129,10 @@ Options:
|
|
|
127
129
|
Working directory (defaults to start directory)
|
|
128
130
|
-n, --no-default-patterns
|
|
129
131
|
Do not apply any default include/exclude patterns.
|
|
132
|
+
--no-exitcode
|
|
133
|
+
Do not exit with an error code on unit test failure.
|
|
134
|
+
--no-pathfix
|
|
135
|
+
Do not apply path fixes, rely on PYTHONPATH only.
|
|
130
136
|
-r, --report {html|junit}
|
|
131
137
|
Generate a report to stdout using either an "html"
|
|
132
138
|
or "junit" format. When generating a report to stdout
|
|
@@ -51,6 +51,8 @@ Usage: python3 -m punit [-h|--help]
|
|
|
51
51
|
[-t|--trait [!]NAME[=VALUE]]
|
|
52
52
|
[-w|--working-directory PATH]
|
|
53
53
|
[-n|--no-default-patterns]
|
|
54
|
+
[--no-exitcode]
|
|
55
|
+
[--no-pathfix]
|
|
54
56
|
[-r|--report {junit|json}]
|
|
55
57
|
[-o|--output FILENAME]
|
|
56
58
|
|
|
@@ -83,6 +85,10 @@ Options:
|
|
|
83
85
|
Working directory (defaults to start directory)
|
|
84
86
|
-n, --no-default-patterns
|
|
85
87
|
Do not apply any default include/exclude patterns.
|
|
88
|
+
--no-exitcode
|
|
89
|
+
Do not exit with an error code on unit test failure.
|
|
90
|
+
--no-pathfix
|
|
91
|
+
Do not apply path fixes, rely on PYTHONPATH only.
|
|
86
92
|
-r, --report {html|junit}
|
|
87
93
|
Generate a report to stdout using either an "html"
|
|
88
94
|
or "junit" format. When generating a report to stdout
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: pUnit
|
|
3
|
-
Version: 1.4.
|
|
3
|
+
Version: 1.4.8
|
|
4
4
|
Summary: A modernized unit-test framework for Python.
|
|
5
5
|
Author-email: Shaun Wilson <mrshaunwilson@msn.com>
|
|
6
6
|
License: MIT License
|
|
@@ -95,6 +95,8 @@ Usage: python3 -m punit [-h|--help]
|
|
|
95
95
|
[-t|--trait [!]NAME[=VALUE]]
|
|
96
96
|
[-w|--working-directory PATH]
|
|
97
97
|
[-n|--no-default-patterns]
|
|
98
|
+
[--no-exitcode]
|
|
99
|
+
[--no-pathfix]
|
|
98
100
|
[-r|--report {junit|json}]
|
|
99
101
|
[-o|--output FILENAME]
|
|
100
102
|
|
|
@@ -127,6 +129,10 @@ Options:
|
|
|
127
129
|
Working directory (defaults to start directory)
|
|
128
130
|
-n, --no-default-patterns
|
|
129
131
|
Do not apply any default include/exclude patterns.
|
|
132
|
+
--no-exitcode
|
|
133
|
+
Do not exit with an error code on unit test failure.
|
|
134
|
+
--no-pathfix
|
|
135
|
+
Do not apply path fixes, rely on PYTHONPATH only.
|
|
130
136
|
-r, --report {html|junit}
|
|
131
137
|
Generate a report to stdout using either an "html"
|
|
132
138
|
or "junit" format. When generating a report to stdout
|
|
@@ -21,6 +21,11 @@ async def async_main() -> None:
|
|
|
21
21
|
elif not cli.quiet: # pragma: no cover
|
|
22
22
|
cli.printVersion()
|
|
23
23
|
os.chdir(cli.workdir)
|
|
24
|
+
if cli.no_pathfix is not True:
|
|
25
|
+
if os.path.exists('src') and 'src' not in sys.path:
|
|
26
|
+
sys.path.append('src')
|
|
27
|
+
if '.' not in sys.path:
|
|
28
|
+
sys.path.append('src')
|
|
24
29
|
testModuleDiscovery = TestModuleDiscovery(
|
|
25
30
|
os.path.join(cli.workdir, cli.testPackageName),
|
|
26
31
|
cli.includePatterns,
|
|
@@ -20,6 +20,7 @@ class CommandLineInterface:
|
|
|
20
20
|
__includeTraits:list[Trait]
|
|
21
21
|
__no_default_patterns:bool
|
|
22
22
|
__no_exitcode:bool
|
|
23
|
+
__no_pathfix:bool
|
|
23
24
|
__outputFilename:Optional[str]
|
|
24
25
|
__quiet:bool
|
|
25
26
|
__reportFormat:Optional[str]
|
|
@@ -37,6 +38,7 @@ class CommandLineInterface:
|
|
|
37
38
|
self.__includeTraits = []
|
|
38
39
|
self.__no_default_patterns = False
|
|
39
40
|
self.__no_exitcode = False
|
|
41
|
+
self.__no_pathfix = False
|
|
40
42
|
self.__outputFilename = None
|
|
41
43
|
self.__quiet = False
|
|
42
44
|
self.__reportFormat = None
|
|
@@ -133,6 +135,8 @@ class CommandLineInterface:
|
|
|
133
135
|
self.__no_default_patterns = True
|
|
134
136
|
case '--no-exitcode':
|
|
135
137
|
self.__no_exitcode = True
|
|
138
|
+
case '--no-pathfix':
|
|
139
|
+
self.__no_pathfix = True
|
|
136
140
|
case '-r' | '--report':
|
|
137
141
|
extractReportFormat = True
|
|
138
142
|
case '-o' | '--output':
|
|
@@ -208,7 +212,11 @@ class CommandLineInterface:
|
|
|
208
212
|
@property
|
|
209
213
|
def no_exitcode(self) -> bool:
|
|
210
214
|
return self.__no_exitcode is True
|
|
211
|
-
|
|
215
|
+
|
|
216
|
+
@property
|
|
217
|
+
def no_pathfix(self) -> bool:
|
|
218
|
+
return self.__no_pathfix is True
|
|
219
|
+
|
|
212
220
|
def printHelp(self) -> None:
|
|
213
221
|
if True: # pragma: no cover
|
|
214
222
|
self.printVersion()
|
|
@@ -224,6 +232,7 @@ Usage: python3 -m punit [-h|--help]
|
|
|
224
232
|
[-w|--working-directory PATH]
|
|
225
233
|
[-n|--no-default-patterns]
|
|
226
234
|
[--no-exitcode]
|
|
235
|
+
[--no-pathfix]
|
|
227
236
|
[-r|--report {junit|json}]
|
|
228
237
|
[-o|--output FILENAME]
|
|
229
238
|
|
|
@@ -258,6 +267,8 @@ Options:
|
|
|
258
267
|
Do not apply any default include/exclude patterns.
|
|
259
268
|
--no-exitcode
|
|
260
269
|
Do not exit with an error code on unit test failure.
|
|
270
|
+
--no-pathfix
|
|
271
|
+
Do not apply path fixes, rely on PYTHONPATH only.
|
|
261
272
|
-r, --report {html|junit}
|
|
262
273
|
Generate a report to stdout using either an "html"
|
|
263
274
|
or "junit" format. When generating a report to stdout
|
|
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
|
|
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
|