pUnit 1.2.0__tar.gz → 1.2.4__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.
Files changed (34) hide show
  1. punit-1.2.4/.scripts/punit +8 -0
  2. {punit-1.2.0 → punit-1.2.4}/LICENSE +1 -1
  3. {punit-1.2.0/src/pUnit.egg-info → punit-1.2.4}/PKG-INFO +2 -2
  4. {punit-1.2.0 → punit-1.2.4}/pyproject.toml +1 -1
  5. {punit-1.2.0 → punit-1.2.4/src/pUnit.egg-info}/PKG-INFO +2 -2
  6. {punit-1.2.0 → punit-1.2.4}/src/punit/TestResult.py +1 -1
  7. {punit-1.2.0 → punit-1.2.4}/src/punit/__init__.py +2 -2
  8. {punit-1.2.0 → punit-1.2.4}/src/punit/__main__.py +1 -1
  9. {punit-1.2.0 → punit-1.2.4}/src/punit/assertions/__init__.py +1 -1
  10. {punit-1.2.0 → punit-1.2.4}/src/punit/assertions/collections.py +1 -1
  11. {punit-1.2.0 → punit-1.2.4}/src/punit/assertions/exceptions.py +1 -1
  12. {punit-1.2.0 → punit-1.2.4}/src/punit/assertions/strings.py +1 -1
  13. {punit-1.2.0 → punit-1.2.4}/src/punit/cli.py +1 -1
  14. {punit-1.2.0 → punit-1.2.4}/src/punit/discovery/TestModuleDiscovery.py +1 -1
  15. {punit-1.2.0 → punit-1.2.4}/src/punit/discovery/__init__.py +1 -1
  16. {punit-1.2.0 → punit-1.2.4}/src/punit/facts/Fact.py +1 -1
  17. {punit-1.2.0 → punit-1.2.4}/src/punit/facts/FactManager.py +2 -2
  18. {punit-1.2.0 → punit-1.2.4}/src/punit/facts/__init__.py +1 -1
  19. {punit-1.2.0 → punit-1.2.4}/src/punit/reports/HtmlReportGenerator.py +1 -1
  20. {punit-1.2.0 → punit-1.2.4}/src/punit/reports/JUnitReportGenerator.py +1 -1
  21. {punit-1.2.0 → punit-1.2.4}/src/punit/reports/__init__.py +1 -1
  22. {punit-1.2.0 → punit-1.2.4}/src/punit/runner.py +1 -1
  23. {punit-1.2.0 → punit-1.2.4}/src/punit/theories/Theory.py +1 -1
  24. {punit-1.2.0 → punit-1.2.4}/src/punit/theories/TheoryManager.py +2 -2
  25. {punit-1.2.0 → punit-1.2.4}/src/punit/theories/__init__.py +1 -1
  26. {punit-1.2.0 → punit-1.2.4}/src/punit/traits/Trait.py +1 -1
  27. {punit-1.2.0 → punit-1.2.4}/src/punit/traits/__init__.py +1 -1
  28. punit-1.2.0/.scripts/punit +0 -7
  29. {punit-1.2.0 → punit-1.2.4}/README.md +0 -0
  30. {punit-1.2.0 → punit-1.2.4}/setup.cfg +0 -0
  31. {punit-1.2.0 → punit-1.2.4}/src/pUnit.egg-info/SOURCES.txt +0 -0
  32. {punit-1.2.0 → punit-1.2.4}/src/pUnit.egg-info/dependency_links.txt +0 -0
  33. {punit-1.2.0 → punit-1.2.4}/src/pUnit.egg-info/requires.txt +0 -0
  34. {punit-1.2.0 → punit-1.2.4}/src/pUnit.egg-info/top_level.txt +0 -0
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env python
2
+ # SPDX-FileCopyrightText: © 2026 Shaun Wilson
3
+ # SPDX-License-Identifier: MIT
4
+ ##
5
+ from subprocess import run
6
+ from sys import executable, argv, exit
7
+ result = run([ executable, "-m", "punit" ] + argv[1:], check=False)
8
+ exit(result.returncode)
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) Shaun Wilson
3
+ © 2024 Shaun Wilson
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
@@ -1,11 +1,11 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pUnit
3
- Version: 1.2.0
3
+ Version: 1.2.4
4
4
  Summary: A modernized unit-test framework for Python.
5
5
  Author-email: Shaun Wilson <mrshaunwilson@msn.com>
6
6
  License: MIT License
7
7
 
8
- Copyright (c) Shaun Wilson
8
+ © 2024 Shaun Wilson
9
9
 
10
10
  Permission is hereby granted, free of charge, to any person obtaining a copy
11
11
  of this software and associated documentation files (the "Software"), to deal
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "pUnit"
3
- version = "1.2.0"
3
+ version = "1.2.4"
4
4
  description = "A modernized unit-test framework for Python."
5
5
  keywords = ["test", "unittest", "unit-test", "xUnit", "nUnit", "pytest"]
6
6
  authors = [
@@ -1,11 +1,11 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pUnit
3
- Version: 1.2.0
3
+ Version: 1.2.4
4
4
  Summary: A modernized unit-test framework for Python.
5
5
  Author-email: Shaun Wilson <mrshaunwilson@msn.com>
6
6
  License: MIT License
7
7
 
8
- Copyright (c) Shaun Wilson
8
+ © 2024 Shaun Wilson
9
9
 
10
10
  Permission is hereby granted, free of charge, to any person obtaining a copy
11
11
  of this software and associated documentation files (the "Software"), to deal
@@ -1,4 +1,4 @@
1
- # SPDX-FileCopyrightText: © Shaun Wilson
1
+ # SPDX-FileCopyrightText: © 2024 Shaun Wilson
2
2
  # SPDX-License-Identifier: MIT
3
3
 
4
4
  import sys
@@ -1,7 +1,7 @@
1
- # SPDX-FileCopyrightText: © Shaun Wilson
1
+ # SPDX-FileCopyrightText: © 2024 Shaun Wilson
2
2
  # SPDX-License-Identifier: MIT
3
3
 
4
- __version__ = '1.2.0'
4
+ __version__ = '1.2.4'
5
5
 
6
6
  from .assertions import *
7
7
  from .facts import *
@@ -1,4 +1,4 @@
1
- # SPDX-FileCopyrightText: © Shaun Wilson
1
+ # SPDX-FileCopyrightText: © 2024 Shaun Wilson
2
2
  # SPDX-License-Identifier: MIT
3
3
 
4
4
  import asyncio
@@ -1,4 +1,4 @@
1
- # SPDX-FileCopyrightText: © Shaun Wilson
1
+ # SPDX-FileCopyrightText: © 2024 Shaun Wilson
2
2
  # SPDX-License-Identifier: MIT
3
3
 
4
4
  from . import collections, exceptions, strings
@@ -1,4 +1,4 @@
1
- # SPDX-FileCopyrightText: © Shaun Wilson
1
+ # SPDX-FileCopyrightText: © 2024 Shaun Wilson
2
2
  # SPDX-License-Identifier: MIT
3
3
 
4
4
  from typing import Any, Callable, Sequence, Optional, cast
@@ -1,4 +1,4 @@
1
- # SPDX-FileCopyrightText: © Shaun Wilson
1
+ # SPDX-FileCopyrightText: © 2025 Shaun Wilson
2
2
  # SPDX-License-Identifier: MIT
3
3
 
4
4
  from typing import Any, Callable, Optional, cast, get_args
@@ -1,4 +1,4 @@
1
- # SPDX-FileCopyrightText: © Shaun Wilson
1
+ # SPDX-FileCopyrightText: © 2025 Shaun Wilson
2
2
  # SPDX-License-Identifier: MIT
3
3
 
4
4
  from typing import Any
@@ -1,4 +1,4 @@
1
- # SPDX-FileCopyrightText: © Shaun Wilson
1
+ # SPDX-FileCopyrightText: © 2024 Shaun Wilson
2
2
  # SPDX-License-Identifier: MIT
3
3
 
4
4
  import os
@@ -1,4 +1,4 @@
1
- # SPDX-FileCopyrightText: © Shaun Wilson
1
+ # SPDX-FileCopyrightText: © 2024 Shaun Wilson
2
2
  # SPDX-License-Identifier: MIT
3
3
 
4
4
  import os
@@ -1,4 +1,4 @@
1
- # SPDX-FileCopyrightText: © Shaun Wilson
1
+ # SPDX-FileCopyrightText: © 2024 Shaun Wilson
2
2
  # SPDX-License-Identifier: MIT
3
3
 
4
4
  from .TestModuleDiscovery import TestModuleDiscovery
@@ -1,4 +1,4 @@
1
- # SPDX-FileCopyrightText: © Shaun Wilson
1
+ # SPDX-FileCopyrightText: © 2024 Shaun Wilson
2
2
  # SPDX-License-Identifier: MIT
3
3
 
4
4
  import inspect
@@ -1,4 +1,4 @@
1
- # SPDX-FileCopyrightText: © Shaun Wilson
1
+ # SPDX-FileCopyrightText: © 2024 Shaun Wilson
2
2
  # SPDX-License-Identifier: MIT
3
3
  ##
4
4
 
@@ -13,7 +13,7 @@ class FactManager:
13
13
 
14
14
  __excludeTraits:list[Trait]
15
15
  __filterPattern:Optional[re.Pattern]
16
- __instance:'FactManager'|None = None
16
+ __instance:Optional['FactManager'] = None
17
17
  __includeTraits:list[Trait]
18
18
  __modules:dict[str, list[Fact]]
19
19
  __traits:dict[Callable, list[Trait]]
@@ -1,4 +1,4 @@
1
- # SPDX-FileCopyrightText: © Shaun Wilson
1
+ # SPDX-FileCopyrightText: © 2024 Shaun Wilson
2
2
  # SPDX-License-Identifier: MIT
3
3
 
4
4
  from .Fact import Fact, fact
@@ -1,4 +1,4 @@
1
- # SPDX-FileCopyrightText: © Shaun Wilson
1
+ # SPDX-FileCopyrightText: © 2024 Shaun Wilson
2
2
  # SPDX-License-Identifier: MIT
3
3
 
4
4
  import traceback
@@ -1,4 +1,4 @@
1
- # SPDX-FileCopyrightText: © Shaun Wilson
1
+ # SPDX-FileCopyrightText: © 2024 Shaun Wilson
2
2
  # SPDX-License-Identifier: MIT
3
3
 
4
4
  from typing import Optional
@@ -1,4 +1,4 @@
1
- # SPDX-FileCopyrightText: © Shaun Wilson
1
+ # SPDX-FileCopyrightText: © 2024 Shaun Wilson
2
2
  # SPDX-License-Identifier: MIT
3
3
 
4
4
  from .HtmlReportGenerator import HtmlReportGenerator
@@ -1,4 +1,4 @@
1
- # SPDX-FileCopyrightText: © Shaun Wilson
1
+ # SPDX-FileCopyrightText: © 2024 Shaun Wilson
2
2
  # SPDX-License-Identifier: MIT
3
3
 
4
4
  import importlib
@@ -1,4 +1,4 @@
1
- # SPDX-FileCopyrightText: © Shaun Wilson
1
+ # SPDX-FileCopyrightText: © 2024 Shaun Wilson
2
2
  # SPDX-License-Identifier: MIT
3
3
  ##
4
4
 
@@ -1,4 +1,4 @@
1
- # SPDX-FileCopyrightText: © Shaun Wilson
1
+ # SPDX-FileCopyrightText: © 2024 Shaun Wilson
2
2
  # SPDX-License-Identifier: MIT
3
3
  ##
4
4
 
@@ -14,7 +14,7 @@ class TheoryManager:
14
14
  __excludeTraits:list[Trait]
15
15
  __filterPattern:Optional[re.Pattern]
16
16
  __includeTraits:list[Trait]
17
- __instance:'TheoryManager'|None = None
17
+ __instance:Optional['TheoryManager'] = None
18
18
  __modules:dict[str, list[Theory]]
19
19
  __datas:dict[Callable, list[tuple]]
20
20
  __traits:dict[Callable, list[Trait]]
@@ -1,4 +1,4 @@
1
- # SPDX-FileCopyrightText: © Shaun Wilson
1
+ # SPDX-FileCopyrightText: © 2024 Shaun Wilson
2
2
  # SPDX-License-Identifier: MIT
3
3
 
4
4
  from .Theory import Theory, theory, inlinedata
@@ -1,4 +1,4 @@
1
- # SPDX-FileCopyrightText: © Shaun Wilson
1
+ # SPDX-FileCopyrightText: © 2024 Shaun Wilson
2
2
  # SPDX-License-Identifier: MIT
3
3
  ##
4
4
 
@@ -1,4 +1,4 @@
1
- # SPDX-FileCopyrightText: © Shaun Wilson
1
+ # SPDX-FileCopyrightText: © 2024 Shaun Wilson
2
2
  # SPDX-License-Identifier: MIT
3
3
 
4
4
  from .Trait import Trait, trait
@@ -1,7 +0,0 @@
1
- #!/usr/bin/env python
2
- # SPDX-FileCopyrightText: © Shaun Wilson
3
- # SPDX-License-Identifier: MIT
4
- ##
5
- from subprocess import run
6
- from sys import executable, argv
7
- run([ executable, "-m", "punit" ] + argv[1:], check=True)
File without changes
File without changes