ndfl1 0.0.0__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.
ndfl1-0.0.0/PKG-INFO ADDED
@@ -0,0 +1,8 @@
1
+ Metadata-Version: 2.4
2
+ Name: ndfl1
3
+ Version: 0.0.0
4
+ Description-Content-Type: text/markdown
5
+ Dynamic: description
6
+ Dynamic: description-content-type
7
+
8
+ Tax calculator
ndfl1-0.0.0/setup.cfg ADDED
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
ndfl1-0.0.0/setup.py ADDED
@@ -0,0 +1,10 @@
1
+ from setuptools import setup, find_packages
2
+
3
+ setup(
4
+ name = "ndfl1",
5
+ version = "0.0.0",
6
+ long_description="Tax calculator",
7
+ long_description_content_type="text/markdown",
8
+ package_dir = {"": "src"},
9
+ packages = find_packages(where="src")
10
+ )
@@ -0,0 +1,8 @@
1
+ Metadata-Version: 2.4
2
+ Name: ndfl1
3
+ Version: 0.0.0
4
+ Description-Content-Type: text/markdown
5
+ Dynamic: description
6
+ Dynamic: description-content-type
7
+
8
+ Tax calculator
@@ -0,0 +1,6 @@
1
+ setup.py
2
+ src/ndfl1.egg-info/PKG-INFO
3
+ src/ndfl1.egg-info/SOURCES.txt
4
+ src/ndfl1.egg-info/dependency_links.txt
5
+ src/ndfl1.egg-info/top_level.txt
6
+ tests/test_ndfl_basic.py
@@ -0,0 +1,16 @@
1
+ from ndfl import calculate_tax
2
+
3
+ def test_basic_ndfl():
4
+ assert calculate_tax(200_000) == 26_000
5
+
6
+ def test_basic_tier_2():
7
+ assert calculate_tax(3_000_000) == 402_000
8
+
9
+ def test_basic_tier_3():
10
+ assert calculate_tax(7_000_000) == 1_062_000
11
+
12
+ def test_basic_tier_4():
13
+ assert calculate_tax(30_000_000) == 5_402_000
14
+
15
+ def test_basic_tier_5():
16
+ assert calculate_tax(70_000_000) == 13_802_000