pUnit 1.2.6__tar.gz → 1.2.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.
Files changed (34) hide show
  1. {punit-1.2.6/src/pUnit.egg-info → punit-1.2.8}/PKG-INFO +1 -1
  2. {punit-1.2.6 → punit-1.2.8}/pyproject.toml +4 -1
  3. {punit-1.2.6 → punit-1.2.8/src/pUnit.egg-info}/PKG-INFO +1 -1
  4. {punit-1.2.6 → punit-1.2.8}/src/pUnit.egg-info/SOURCES.txt +1 -0
  5. {punit-1.2.6 → punit-1.2.8}/src/punit/__init__.py +1 -1
  6. {punit-1.2.6 → punit-1.2.8}/src/punit/assertions/collections.py +3 -3
  7. punit-1.2.8/src/punit/py.typed +0 -0
  8. {punit-1.2.6 → punit-1.2.8}/.scripts/punit +0 -0
  9. {punit-1.2.6 → punit-1.2.8}/LICENSE +0 -0
  10. {punit-1.2.6 → punit-1.2.8}/README.md +0 -0
  11. {punit-1.2.6 → punit-1.2.8}/setup.cfg +0 -0
  12. {punit-1.2.6 → punit-1.2.8}/src/pUnit.egg-info/dependency_links.txt +0 -0
  13. {punit-1.2.6 → punit-1.2.8}/src/pUnit.egg-info/requires.txt +0 -0
  14. {punit-1.2.6 → punit-1.2.8}/src/pUnit.egg-info/top_level.txt +0 -0
  15. {punit-1.2.6 → punit-1.2.8}/src/punit/TestResult.py +0 -0
  16. {punit-1.2.6 → punit-1.2.8}/src/punit/__main__.py +0 -0
  17. {punit-1.2.6 → punit-1.2.8}/src/punit/assertions/__init__.py +0 -0
  18. {punit-1.2.6 → punit-1.2.8}/src/punit/assertions/exceptions.py +0 -0
  19. {punit-1.2.6 → punit-1.2.8}/src/punit/assertions/strings.py +0 -0
  20. {punit-1.2.6 → punit-1.2.8}/src/punit/cli.py +0 -0
  21. {punit-1.2.6 → punit-1.2.8}/src/punit/discovery/TestModuleDiscovery.py +0 -0
  22. {punit-1.2.6 → punit-1.2.8}/src/punit/discovery/__init__.py +0 -0
  23. {punit-1.2.6 → punit-1.2.8}/src/punit/facts/Fact.py +0 -0
  24. {punit-1.2.6 → punit-1.2.8}/src/punit/facts/FactManager.py +0 -0
  25. {punit-1.2.6 → punit-1.2.8}/src/punit/facts/__init__.py +0 -0
  26. {punit-1.2.6 → punit-1.2.8}/src/punit/reports/HtmlReportGenerator.py +0 -0
  27. {punit-1.2.6 → punit-1.2.8}/src/punit/reports/JUnitReportGenerator.py +0 -0
  28. {punit-1.2.6 → punit-1.2.8}/src/punit/reports/__init__.py +0 -0
  29. {punit-1.2.6 → punit-1.2.8}/src/punit/runner.py +0 -0
  30. {punit-1.2.6 → punit-1.2.8}/src/punit/theories/Theory.py +0 -0
  31. {punit-1.2.6 → punit-1.2.8}/src/punit/theories/TheoryManager.py +0 -0
  32. {punit-1.2.6 → punit-1.2.8}/src/punit/theories/__init__.py +0 -0
  33. {punit-1.2.6 → punit-1.2.8}/src/punit/traits/Trait.py +0 -0
  34. {punit-1.2.6 → punit-1.2.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.2.6
3
+ Version: 1.2.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
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "pUnit"
3
- version = "1.2.6"
3
+ version = "1.2.8"
4
4
  description = "A modernized unit-test framework for Python."
5
5
  keywords = ["test", "unittest", "unit-test", "xUnit", "nUnit", "pytest"]
6
6
  authors = [
@@ -45,3 +45,6 @@ exclude = [
45
45
 
46
46
  [tool.setuptools.data-files]
47
47
  bin = [".scripts/punit"]
48
+
49
+ [tool.setuptools.package-data]
50
+ "punit" = ["py.typed"]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pUnit
3
- Version: 1.2.6
3
+ Version: 1.2.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
@@ -11,6 +11,7 @@ src/punit/TestResult.py
11
11
  src/punit/__init__.py
12
12
  src/punit/__main__.py
13
13
  src/punit/cli.py
14
+ src/punit/py.typed
14
15
  src/punit/runner.py
15
16
  src/punit/assertions/__init__.py
16
17
  src/punit/assertions/collections.py
@@ -1,7 +1,7 @@
1
1
  # SPDX-FileCopyrightText: © 2024 Shaun Wilson
2
2
  # SPDX-License-Identifier: MIT
3
3
 
4
- __version__ = '1.2.6'
4
+ __version__ = '1.2.8'
5
5
 
6
6
  from .assertions import *
7
7
  from .facts import *
@@ -4,7 +4,7 @@
4
4
  from typing import Any, Callable, Sequence, Optional, cast
5
5
 
6
6
 
7
- def areSame(a:Sequence[Any]|None, b:Sequence[Any]|None, sort:bool=False, sortFunction:Optional[Callable[[Any], Any]]=None) -> bool:
7
+ def areSame(a:Sequence[Any]|list[Any]|dict[Any,Any]|None, b:Sequence[Any]|list[Any]|dict[Any,Any]|None, sort:bool=False, sortFunction:Optional[Callable[[Any], Any]]=None) -> bool:
8
8
  """
9
9
  Check if two sequences contain the same elements in the same order.
10
10
 
@@ -47,7 +47,7 @@ def areSame(a:Sequence[Any]|None, b:Sequence[Any]|None, sort:bool=False, sortFun
47
47
  return False
48
48
  return True
49
49
 
50
- def hasLength(sequence:Sequence[Any]|None, expected:int|None) -> bool:
50
+ def hasLength(sequence:Sequence[Any]|list[Any]|dict[Any,Any]|None, expected:int|None) -> bool:
51
51
  """
52
52
  Check if a sequence has the expected number of elements.
53
53
 
@@ -64,7 +64,7 @@ def hasLength(sequence:Sequence[Any]|None, expected:int|None) -> bool:
64
64
  return False
65
65
  return sequence is not None and len(sequence) == expected
66
66
 
67
- def isNoneOrEmpty(sequence:Sequence[Any]|None) -> bool:
67
+ def isNoneOrEmpty(sequence:Sequence[Any]|list[Any]|dict[Any,Any]|None) -> bool:
68
68
  """
69
69
  Check if a sequence is None or empty.
70
70
 
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