pUnit 1.2.7__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.
- {punit-1.2.7/src/pUnit.egg-info → punit-1.2.8}/PKG-INFO +1 -1
- {punit-1.2.7 → punit-1.2.8}/pyproject.toml +1 -1
- {punit-1.2.7 → punit-1.2.8/src/pUnit.egg-info}/PKG-INFO +1 -1
- {punit-1.2.7 → punit-1.2.8}/src/punit/__init__.py +1 -1
- {punit-1.2.7 → punit-1.2.8}/src/punit/assertions/collections.py +3 -3
- {punit-1.2.7 → punit-1.2.8}/.scripts/punit +0 -0
- {punit-1.2.7 → punit-1.2.8}/LICENSE +0 -0
- {punit-1.2.7 → punit-1.2.8}/README.md +0 -0
- {punit-1.2.7 → punit-1.2.8}/setup.cfg +0 -0
- {punit-1.2.7 → punit-1.2.8}/src/pUnit.egg-info/SOURCES.txt +0 -0
- {punit-1.2.7 → punit-1.2.8}/src/pUnit.egg-info/dependency_links.txt +0 -0
- {punit-1.2.7 → punit-1.2.8}/src/pUnit.egg-info/requires.txt +0 -0
- {punit-1.2.7 → punit-1.2.8}/src/pUnit.egg-info/top_level.txt +0 -0
- {punit-1.2.7 → punit-1.2.8}/src/punit/TestResult.py +0 -0
- {punit-1.2.7 → punit-1.2.8}/src/punit/__main__.py +0 -0
- {punit-1.2.7 → punit-1.2.8}/src/punit/assertions/__init__.py +0 -0
- {punit-1.2.7 → punit-1.2.8}/src/punit/assertions/exceptions.py +0 -0
- {punit-1.2.7 → punit-1.2.8}/src/punit/assertions/strings.py +0 -0
- {punit-1.2.7 → punit-1.2.8}/src/punit/cli.py +0 -0
- {punit-1.2.7 → punit-1.2.8}/src/punit/discovery/TestModuleDiscovery.py +0 -0
- {punit-1.2.7 → punit-1.2.8}/src/punit/discovery/__init__.py +0 -0
- {punit-1.2.7 → punit-1.2.8}/src/punit/facts/Fact.py +0 -0
- {punit-1.2.7 → punit-1.2.8}/src/punit/facts/FactManager.py +0 -0
- {punit-1.2.7 → punit-1.2.8}/src/punit/facts/__init__.py +0 -0
- {punit-1.2.7 → punit-1.2.8}/src/punit/py.typed +0 -0
- {punit-1.2.7 → punit-1.2.8}/src/punit/reports/HtmlReportGenerator.py +0 -0
- {punit-1.2.7 → punit-1.2.8}/src/punit/reports/JUnitReportGenerator.py +0 -0
- {punit-1.2.7 → punit-1.2.8}/src/punit/reports/__init__.py +0 -0
- {punit-1.2.7 → punit-1.2.8}/src/punit/runner.py +0 -0
- {punit-1.2.7 → punit-1.2.8}/src/punit/theories/Theory.py +0 -0
- {punit-1.2.7 → punit-1.2.8}/src/punit/theories/TheoryManager.py +0 -0
- {punit-1.2.7 → punit-1.2.8}/src/punit/theories/__init__.py +0 -0
- {punit-1.2.7 → punit-1.2.8}/src/punit/traits/Trait.py +0 -0
- {punit-1.2.7 → punit-1.2.8}/src/punit/traits/__init__.py +0 -0
|
@@ -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
|
|
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
|