dummyfunction 1.0.4__tar.gz → 1.0.5__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: dummyfunction
3
- Version: 1.0.4
3
+ Version: 1.0.5
4
4
  Summary: This project provides the dummy function.
5
5
  Author-email: Johannes <johannes.programming@gmail.com>
6
6
  License: The MIT License (MIT)
@@ -28,7 +28,7 @@ keywords = []
28
28
  name = "dummyfunction"
29
29
  readme = "README.rst"
30
30
  requires-python = ">=3.11"
31
- version = "1.0.4"
31
+ version = "1.0.5"
32
32
 
33
33
  [project.license]
34
34
  file = "LICENSE.txt"
@@ -3,8 +3,12 @@ import unittest
3
3
  __all__ = ["test"]
4
4
 
5
5
 
6
- def test() -> unittest.TextTestRunner:
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
- """Test dummyfunction with no arguments."""
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
- """Test dummyfunction with positional arguments."""
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
- """Test dummyfunction with keyword arguments."""
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
- """Test dummyfunction with both positional and keyword arguments."""
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:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: dummyfunction
3
- Version: 1.0.4
3
+ Version: 1.0.5
4
4
  Summary: This project provides the dummy function.
5
5
  Author-email: Johannes <johannes.programming@gmail.com>
6
6
  License: The MIT License (MIT)
@@ -12,4 +12,4 @@ src/dummyfunction.egg-info/requires.txt
12
12
  src/dummyfunction.egg-info/top_level.txt
13
13
  src/dummyfunction/core/__init__.py
14
14
  src/dummyfunction/tests/__init__.py
15
- src/dummyfunction/tests/test_1984.py
15
+ src/dummyfunction/tests/test_TestDummyFunction.py
File without changes
File without changes
File without changes
File without changes