dummyfunction 1.0.4__py3-none-any.whl → 1.0.5__py3-none-any.whl
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.
- dummyfunction/tests/__init__.py +5 -1
- dummyfunction/tests/{test_1984.py → test_TestDummyFunction.py} +11 -8
- {dummyfunction-1.0.4.dist-info → dummyfunction-1.0.5.dist-info}/METADATA +1 -1
- dummyfunction-1.0.5.dist-info/RECORD +10 -0
- {dummyfunction-1.0.4.dist-info → dummyfunction-1.0.5.dist-info}/WHEEL +1 -1
- dummyfunction-1.0.4.dist-info/RECORD +0 -10
- {dummyfunction-1.0.4.dist-info → dummyfunction-1.0.5.dist-info}/licenses/LICENSE.txt +0 -0
- {dummyfunction-1.0.4.dist-info → dummyfunction-1.0.5.dist-info}/top_level.txt +0 -0
dummyfunction/tests/__init__.py
CHANGED
|
@@ -3,8 +3,12 @@ import unittest
|
|
|
3
3
|
__all__ = ["test"]
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
def test() -> unittest.
|
|
6
|
+
def test() -> unittest.TextTestResult:
|
|
7
7
|
"This function runs all the tests."
|
|
8
|
+
loader: unittest.TestLoader
|
|
9
|
+
tests: unittest.TestSuite
|
|
10
|
+
runner: unittest.TextTestRunner
|
|
11
|
+
result: unittest.TextTestResult
|
|
8
12
|
loader = unittest.TestLoader()
|
|
9
13
|
tests = loader.discover(start_dir="dummyfunction.tests")
|
|
10
14
|
runner = unittest.TextTestRunner()
|
|
@@ -1,32 +1,35 @@
|
|
|
1
1
|
import unittest
|
|
2
|
+
from typing import *
|
|
2
3
|
|
|
3
4
|
from dummyfunction.core import dummyfunction
|
|
4
5
|
|
|
6
|
+
__all__ = ["TestDummyFunction"]
|
|
7
|
+
|
|
5
8
|
|
|
6
9
|
class TestDummyFunction(unittest.TestCase):
|
|
7
|
-
def test_dummyfunction_no_args(self):
|
|
8
|
-
"
|
|
10
|
+
def test_dummyfunction_no_args(self: Self) -> None:
|
|
11
|
+
"Test dummyfunction with no arguments."
|
|
9
12
|
try:
|
|
10
13
|
dummyfunction()
|
|
11
14
|
except Exception as e:
|
|
12
15
|
self.fail(f"dummyfunction() raised an exception: {e}")
|
|
13
16
|
|
|
14
|
-
def test_dummyfunction_with_args(self):
|
|
15
|
-
"
|
|
17
|
+
def test_dummyfunction_with_args(self: Self) -> None:
|
|
18
|
+
"Test dummyfunction with positional arguments."
|
|
16
19
|
try:
|
|
17
20
|
dummyfunction(1, 2, 3, "test")
|
|
18
21
|
except Exception as e:
|
|
19
22
|
self.fail(f"dummyfunction(1, 2, 3, 'test') raised an exception: {e}")
|
|
20
23
|
|
|
21
|
-
def test_dummyfunction_with_kwargs(self):
|
|
22
|
-
"
|
|
24
|
+
def test_dummyfunction_with_kwargs(self: Self) -> None:
|
|
25
|
+
"Test dummyfunction with keyword arguments."
|
|
23
26
|
try:
|
|
24
27
|
dummyfunction(a=1, b=2, c="test")
|
|
25
28
|
except Exception as e:
|
|
26
29
|
self.fail(f"dummyfunction(a=1, b=2, c='test') raised an exception: {e}")
|
|
27
30
|
|
|
28
|
-
def test_dummyfunction_with_args_and_kwargs(self):
|
|
29
|
-
"
|
|
31
|
+
def test_dummyfunction_with_args_and_kwargs(self: Self) -> None:
|
|
32
|
+
"Test dummyfunction with both positional and keyword arguments."
|
|
30
33
|
try:
|
|
31
34
|
dummyfunction(1, "string", key1=True, key2=None)
|
|
32
35
|
except Exception as e:
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
dummyfunction/__init__.py,sha256=FY0UuRGVh3Mn8OmJbHnw5AwIw_Xlhg8V7s72DqRdtqk,106
|
|
2
|
+
dummyfunction/__main__.py,sha256=jyj7Qe8jg8GFni2zoRDfHSJ-ZzfcE3dfiYxhhZIfmn0,70
|
|
3
|
+
dummyfunction/core/__init__.py,sha256=AIwIopIAgiEnU-33k9NMks7zHNT8VjCsoB-NipRIL-g,464
|
|
4
|
+
dummyfunction/tests/__init__.py,sha256=K4VERYEzjqPMSk3Hfx6n1KibOlXbW4NUEK4G8Ynrqm4,435
|
|
5
|
+
dummyfunction/tests/test_TestDummyFunction.py,sha256=w5b8xeAxq1_p2nvnWVm-T6MVp4R-TjJvdoR3yYeWCic,1405
|
|
6
|
+
dummyfunction-1.0.5.dist-info/licenses/LICENSE.txt,sha256=fOh9FHccUt9OcJPBaVJ482GX4yrl_FxCUk9YRZ53JOI,1074
|
|
7
|
+
dummyfunction-1.0.5.dist-info/METADATA,sha256=R4qzWLEQfV5YaCyv4O_070VUVUKH6QmZpjFwgRkOHdE,2462
|
|
8
|
+
dummyfunction-1.0.5.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
|
|
9
|
+
dummyfunction-1.0.5.dist-info/top_level.txt,sha256=0n329vR1fNs3LoSrIBywz3WXySZi0ra4Xqpjgf9WtXg,14
|
|
10
|
+
dummyfunction-1.0.5.dist-info/RECORD,,
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
dummyfunction/__init__.py,sha256=FY0UuRGVh3Mn8OmJbHnw5AwIw_Xlhg8V7s72DqRdtqk,106
|
|
2
|
-
dummyfunction/__main__.py,sha256=jyj7Qe8jg8GFni2zoRDfHSJ-ZzfcE3dfiYxhhZIfmn0,70
|
|
3
|
-
dummyfunction/core/__init__.py,sha256=AIwIopIAgiEnU-33k9NMks7zHNT8VjCsoB-NipRIL-g,464
|
|
4
|
-
dummyfunction/tests/__init__.py,sha256=ccuQf8RUinh2ZI7Pr2uOY-P3ZVCwNTylyRk896u8cdI,301
|
|
5
|
-
dummyfunction/tests/test_1984.py,sha256=-ZOjJqXtSV3iS-QSg2R0KmX8TAgIpm-hGD3ZtHSCTb8,1311
|
|
6
|
-
dummyfunction-1.0.4.dist-info/licenses/LICENSE.txt,sha256=fOh9FHccUt9OcJPBaVJ482GX4yrl_FxCUk9YRZ53JOI,1074
|
|
7
|
-
dummyfunction-1.0.4.dist-info/METADATA,sha256=DzthTdDr0txeRVSglPeZCzTz1rgBxDoYYUlqxoi32Nc,2462
|
|
8
|
-
dummyfunction-1.0.4.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
9
|
-
dummyfunction-1.0.4.dist-info/top_level.txt,sha256=0n329vR1fNs3LoSrIBywz3WXySZi0ra4Xqpjgf9WtXg,14
|
|
10
|
-
dummyfunction-1.0.4.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|