punit 1.4.8__tar.gz → 1.4.9__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.8/src/pUnit.egg-info → punit-1.4.9}/PKG-INFO +1 -1
- {punit-1.4.8 → punit-1.4.9}/pyproject.toml +1 -1
- {punit-1.4.8 → punit-1.4.9/src/pUnit.egg-info}/PKG-INFO +1 -1
- {punit-1.4.8 → punit-1.4.9}/src/punit/__init__.py +2 -2
- {punit-1.4.8 → punit-1.4.9}/src/punit/__main__.py +8 -4
- {punit-1.4.8 → punit-1.4.9}/LICENSE +0 -0
- {punit-1.4.8 → punit-1.4.9}/README.md +0 -0
- {punit-1.4.8 → punit-1.4.9}/setup.cfg +0 -0
- {punit-1.4.8 → punit-1.4.9}/src/pUnit.egg-info/SOURCES.txt +0 -0
- {punit-1.4.8 → punit-1.4.9}/src/pUnit.egg-info/dependency_links.txt +0 -0
- {punit-1.4.8 → punit-1.4.9}/src/pUnit.egg-info/entry_points.txt +0 -0
- {punit-1.4.8 → punit-1.4.9}/src/pUnit.egg-info/requires.txt +0 -0
- {punit-1.4.8 → punit-1.4.9}/src/pUnit.egg-info/top_level.txt +0 -0
- {punit-1.4.8 → punit-1.4.9}/src/punit/TestResult.py +0 -0
- {punit-1.4.8 → punit-1.4.9}/src/punit/assertions/__init__.py +0 -0
- {punit-1.4.8 → punit-1.4.9}/src/punit/assertions/collections.py +0 -0
- {punit-1.4.8 → punit-1.4.9}/src/punit/assertions/exceptions.py +0 -0
- {punit-1.4.8 → punit-1.4.9}/src/punit/assertions/strings.py +0 -0
- {punit-1.4.8 → punit-1.4.9}/src/punit/cli.py +0 -0
- {punit-1.4.8 → punit-1.4.9}/src/punit/discovery/TestModuleDiscovery.py +0 -0
- {punit-1.4.8 → punit-1.4.9}/src/punit/discovery/__init__.py +0 -0
- {punit-1.4.8 → punit-1.4.9}/src/punit/facts/Fact.py +0 -0
- {punit-1.4.8 → punit-1.4.9}/src/punit/facts/FactManager.py +0 -0
- {punit-1.4.8 → punit-1.4.9}/src/punit/facts/__init__.py +0 -0
- {punit-1.4.8 → punit-1.4.9}/src/punit/filters/Filter.py +0 -0
- {punit-1.4.8 → punit-1.4.9}/src/punit/filters/FilterManager.py +0 -0
- {punit-1.4.8 → punit-1.4.9}/src/punit/filters/__init__.py +0 -0
- {punit-1.4.8 → punit-1.4.9}/src/punit/metadata/CallableMetadata.py +0 -0
- {punit-1.4.8 → punit-1.4.9}/src/punit/metadata/__init__.py +0 -0
- {punit-1.4.8 → punit-1.4.9}/src/punit/py.typed +0 -0
- {punit-1.4.8 → punit-1.4.9}/src/punit/reports/HtmlReportGenerator.py +0 -0
- {punit-1.4.8 → punit-1.4.9}/src/punit/reports/JUnitReportGenerator.py +0 -0
- {punit-1.4.8 → punit-1.4.9}/src/punit/reports/JsonReportGenerator.py +0 -0
- {punit-1.4.8 → punit-1.4.9}/src/punit/reports/__init__.py +0 -0
- {punit-1.4.8 → punit-1.4.9}/src/punit/runner.py +0 -0
- {punit-1.4.8 → punit-1.4.9}/src/punit/theories/Theory.py +0 -0
- {punit-1.4.8 → punit-1.4.9}/src/punit/theories/TheoryManager.py +0 -0
- {punit-1.4.8 → punit-1.4.9}/src/punit/theories/__init__.py +0 -0
- {punit-1.4.8 → punit-1.4.9}/src/punit/traits/Trait.py +0 -0
- {punit-1.4.8 → punit-1.4.9}/src/punit/traits/TraitManager.py +0 -0
- {punit-1.4.8 → punit-1.4.9}/src/punit/traits/__init__.py +0 -0
|
@@ -5,6 +5,8 @@ import asyncio
|
|
|
5
5
|
import os
|
|
6
6
|
import sys
|
|
7
7
|
import time
|
|
8
|
+
from pathlib import Path
|
|
9
|
+
|
|
8
10
|
from .cli import CommandLineInterface
|
|
9
11
|
from .discovery import TestModuleDiscovery
|
|
10
12
|
from .reports import HtmlReportGenerator, JUnitReportGenerator, JsonReportGenerator
|
|
@@ -22,10 +24,12 @@ async def async_main() -> None:
|
|
|
22
24
|
cli.printVersion()
|
|
23
25
|
os.chdir(cli.workdir)
|
|
24
26
|
if cli.no_pathfix is not True:
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
if
|
|
28
|
-
sys.path.append(
|
|
27
|
+
pathbase = str(Path.cwd())
|
|
28
|
+
srcbase = os.path.join(pathbase, 'src')
|
|
29
|
+
if os.path.exists(srcbase) and srcbase not in sys.path:
|
|
30
|
+
sys.path.append(srcbase)
|
|
31
|
+
if pathbase not in sys.path:
|
|
32
|
+
sys.path.append(pathbase)
|
|
29
33
|
testModuleDiscovery = TestModuleDiscovery(
|
|
30
34
|
os.path.join(cli.workdir, cli.testPackageName),
|
|
31
35
|
cli.includePatterns,
|
|
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
|
|
File without changes
|
|
File without changes
|