pUnit 1.2.7__tar.gz → 1.2.10__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.7/src/pUnit.egg-info → punit-1.2.10}/PKG-INFO +1 -1
  2. {punit-1.2.7 → punit-1.2.10}/pyproject.toml +1 -1
  3. {punit-1.2.7 → punit-1.2.10/src/pUnit.egg-info}/PKG-INFO +1 -1
  4. {punit-1.2.7 → punit-1.2.10}/src/punit/__init__.py +3 -2
  5. {punit-1.2.7 → punit-1.2.10}/src/punit/assertions/collections.py +3 -3
  6. {punit-1.2.7 → punit-1.2.10}/src/punit/cli.py +2 -2
  7. {punit-1.2.7 → punit-1.2.10}/.scripts/punit +0 -0
  8. {punit-1.2.7 → punit-1.2.10}/LICENSE +0 -0
  9. {punit-1.2.7 → punit-1.2.10}/README.md +0 -0
  10. {punit-1.2.7 → punit-1.2.10}/setup.cfg +0 -0
  11. {punit-1.2.7 → punit-1.2.10}/src/pUnit.egg-info/SOURCES.txt +0 -0
  12. {punit-1.2.7 → punit-1.2.10}/src/pUnit.egg-info/dependency_links.txt +0 -0
  13. {punit-1.2.7 → punit-1.2.10}/src/pUnit.egg-info/requires.txt +0 -0
  14. {punit-1.2.7 → punit-1.2.10}/src/pUnit.egg-info/top_level.txt +0 -0
  15. {punit-1.2.7 → punit-1.2.10}/src/punit/TestResult.py +0 -0
  16. {punit-1.2.7 → punit-1.2.10}/src/punit/__main__.py +0 -0
  17. {punit-1.2.7 → punit-1.2.10}/src/punit/assertions/__init__.py +0 -0
  18. {punit-1.2.7 → punit-1.2.10}/src/punit/assertions/exceptions.py +0 -0
  19. {punit-1.2.7 → punit-1.2.10}/src/punit/assertions/strings.py +0 -0
  20. {punit-1.2.7 → punit-1.2.10}/src/punit/discovery/TestModuleDiscovery.py +0 -0
  21. {punit-1.2.7 → punit-1.2.10}/src/punit/discovery/__init__.py +0 -0
  22. {punit-1.2.7 → punit-1.2.10}/src/punit/facts/Fact.py +0 -0
  23. {punit-1.2.7 → punit-1.2.10}/src/punit/facts/FactManager.py +0 -0
  24. {punit-1.2.7 → punit-1.2.10}/src/punit/facts/__init__.py +0 -0
  25. {punit-1.2.7 → punit-1.2.10}/src/punit/py.typed +0 -0
  26. {punit-1.2.7 → punit-1.2.10}/src/punit/reports/HtmlReportGenerator.py +0 -0
  27. {punit-1.2.7 → punit-1.2.10}/src/punit/reports/JUnitReportGenerator.py +0 -0
  28. {punit-1.2.7 → punit-1.2.10}/src/punit/reports/__init__.py +0 -0
  29. {punit-1.2.7 → punit-1.2.10}/src/punit/runner.py +0 -0
  30. {punit-1.2.7 → punit-1.2.10}/src/punit/theories/Theory.py +0 -0
  31. {punit-1.2.7 → punit-1.2.10}/src/punit/theories/TheoryManager.py +0 -0
  32. {punit-1.2.7 → punit-1.2.10}/src/punit/theories/__init__.py +0 -0
  33. {punit-1.2.7 → punit-1.2.10}/src/punit/traits/Trait.py +0 -0
  34. {punit-1.2.7 → punit-1.2.10}/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.7
3
+ Version: 1.2.10
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.7"
3
+ version = "1.2.10"
4
4
  description = "A modernized unit-test framework for Python."
5
5
  keywords = ["test", "unittest", "unit-test", "xUnit", "nUnit", "pytest"]
6
6
  authors = [
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pUnit
3
- Version: 1.2.7
3
+ Version: 1.2.10
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,15 +1,16 @@
1
1
  # SPDX-FileCopyrightText: © 2024 Shaun Wilson
2
2
  # SPDX-License-Identifier: MIT
3
3
 
4
- __version__ = '1.2.7'
5
-
6
4
  from .assertions import *
7
5
  from .facts import *
8
6
  from .theories import *
9
7
  from .traits import *
10
8
 
11
9
 
10
+ __version__ = '1.2.10'
11
+ __commit__ = 'c0f4ed9'
12
12
  __all__ = [
13
+ '__version__', '__commit__',
13
14
  'assertions',
14
15
  'collections', 'exceptions', 'strings',
15
16
  'facts',
@@ -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
 
@@ -4,7 +4,7 @@
4
4
  import os
5
5
  import sys
6
6
  from typing import Optional
7
- from . import __version__
7
+ from . import __version__, __commit__
8
8
  from .traits import Trait
9
9
 
10
10
 
@@ -268,7 +268,7 @@ Options:
268
268
  print('Filter Pattern:')
269
269
  print(f'\t{self.__filterPattern}')
270
270
  def printVersion(self) -> None:
271
- print(f'pUnit {__version__}')
271
+ print(f'pUnit {__version__} ({__commit__})')
272
272
 
273
273
  def validate(self) -> None:
274
274
  if self.__workdir is None or len(self.__workdir.lstrip()) == 0 or self.__workdir.startswith('-'):
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