dummyfunction 1.0.0__tar.gz → 1.0.1__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,7 +1,7 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: dummyfunction
3
- Version: 1.0.0
4
- Summary: dummyfunction
3
+ Version: 1.0.1
4
+ Summary: This project provides the dummy function.
5
5
  Author-email: Johannes <johannes-programming@mailfence.com>
6
6
  License: The MIT License (MIT)
7
7
 
@@ -29,12 +29,14 @@ Project-URL: Index, https://pypi.org/project/dummyfunction/
29
29
  Project-URL: Source, https://github.com/johannes-programming/dummyfunction/
30
30
  Project-URL: Website, https://dummyfunction.johannes-programming.online/
31
31
  Classifier: Development Status :: 5 - Production/Stable
32
+ Classifier: Intended Audience :: Developers
32
33
  Classifier: License :: OSI Approved :: MIT License
33
34
  Classifier: Natural Language :: English
34
35
  Classifier: Operating System :: OS Independent
35
36
  Classifier: Programming Language :: Python
36
37
  Classifier: Programming Language :: Python :: 3
37
38
  Classifier: Programming Language :: Python :: 3 :: Only
39
+ Classifier: Typing :: Typed
38
40
  Requires-Python: >=3.8
39
41
  Description-Content-Type: text/x-rst
40
42
  License-File: LICENSE.txt
@@ -10,20 +10,22 @@ authors = [
10
10
  ]
11
11
  classifiers = [
12
12
  "Development Status :: 5 - Production/Stable",
13
+ "Intended Audience :: Developers",
13
14
  "License :: OSI Approved :: MIT License",
14
15
  "Natural Language :: English",
15
16
  "Operating System :: OS Independent",
16
17
  "Programming Language :: Python",
17
18
  "Programming Language :: Python :: 3",
18
19
  "Programming Language :: Python :: 3 :: Only",
20
+ "Typing :: Typed",
19
21
  ]
20
22
  dependencies = []
21
- description = "dummyfunction"
23
+ description = "This project provides the dummy function."
22
24
  keywords = []
23
25
  name = "dummyfunction"
24
26
  readme = "README.rst"
25
27
  requires-python = ">=3.8"
26
- version = "1.0.0"
28
+ version = "1.0.1"
27
29
 
28
30
  [project.license]
29
31
  file = "LICENSE.txt"
@@ -3,6 +3,6 @@ from typing import *
3
3
  __all__ = ["dummyfunction"]
4
4
 
5
5
 
6
- def dummyfunction(*args: object, **kwargs: object) -> None:
6
+ def dummyfunction(*args: Any, **kwargs: Any) -> None:
7
7
  "This function does nothing."
8
8
  pass
@@ -0,0 +1,39 @@
1
+ import unittest
2
+
3
+ from dummyfunction.core import dummyfunction
4
+
5
+
6
+ class TestDummyFunction(unittest.TestCase):
7
+ def test_dummyfunction_no_args(self):
8
+ """Test dummyfunction with no arguments."""
9
+ try:
10
+ dummyfunction()
11
+ except Exception as e:
12
+ self.fail(f"dummyfunction() raised an exception: {e}")
13
+
14
+ def test_dummyfunction_with_args(self):
15
+ """Test dummyfunction with positional arguments."""
16
+ try:
17
+ dummyfunction(1, 2, 3, "test")
18
+ except Exception as e:
19
+ self.fail(f"dummyfunction(1, 2, 3, 'test') raised an exception: {e}")
20
+
21
+ def test_dummyfunction_with_kwargs(self):
22
+ """Test dummyfunction with keyword arguments."""
23
+ try:
24
+ dummyfunction(a=1, b=2, c="test")
25
+ except Exception as e:
26
+ self.fail(f"dummyfunction(a=1, b=2, c='test') raised an exception: {e}")
27
+
28
+ def test_dummyfunction_with_args_and_kwargs(self):
29
+ """Test dummyfunction with both positional and keyword arguments."""
30
+ try:
31
+ dummyfunction(1, "string", key1=True, key2=None)
32
+ except Exception as e:
33
+ self.fail(
34
+ f"dummyfunction(1, 'string', key1=True, key2=None) raised an exception: {e}"
35
+ )
36
+
37
+
38
+ if __name__ == "__main__":
39
+ unittest.main()
@@ -1,7 +1,7 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: dummyfunction
3
- Version: 1.0.0
4
- Summary: dummyfunction
3
+ Version: 1.0.1
4
+ Summary: This project provides the dummy function.
5
5
  Author-email: Johannes <johannes-programming@mailfence.com>
6
6
  License: The MIT License (MIT)
7
7
 
@@ -29,12 +29,14 @@ Project-URL: Index, https://pypi.org/project/dummyfunction/
29
29
  Project-URL: Source, https://github.com/johannes-programming/dummyfunction/
30
30
  Project-URL: Website, https://dummyfunction.johannes-programming.online/
31
31
  Classifier: Development Status :: 5 - Production/Stable
32
+ Classifier: Intended Audience :: Developers
32
33
  Classifier: License :: OSI Approved :: MIT License
33
34
  Classifier: Natural Language :: English
34
35
  Classifier: Operating System :: OS Independent
35
36
  Classifier: Programming Language :: Python
36
37
  Classifier: Programming Language :: Python :: 3
37
38
  Classifier: Programming Language :: Python :: 3 :: Only
39
+ Classifier: Typing :: Typed
38
40
  Requires-Python: >=3.8
39
41
  Description-Content-Type: text/x-rst
40
42
  License-File: LICENSE.txt
@@ -1,10 +0,0 @@
1
- import unittest
2
-
3
-
4
- class Test1984(unittest.TestCase):
5
- def test_1984(self):
6
- self.assertEqual(2 + 2, 4, "Ignorance is Strength")
7
-
8
-
9
- if __name__ == "__main__":
10
- unittest.main()
File without changes
File without changes
File without changes
File without changes