diff --git a/.gitignore b/.gitignore index 90f8fbb..cb5660a 100644 --- a/.gitignore +++ b/.gitignore @@ -161,7 +161,7 @@ cython_debug/ # be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore # and can be added to the global gitignore or merged into this file. For a more nuclear # option (not recommended) you can uncomment the following to ignore the entire idea folder. -#.idea/ +.idea/ ### Python Patch ### # Poetry local configuration file - https://python-poetry.org/docs/configuration/#local-configuration diff --git a/arithmetic_formatter/__init__.py b/arithmetic_formatter/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/arithmetic_formatter/tests.py b/arithmetic_formatter/test_formatter.py similarity index 97% rename from arithmetic_formatter/tests.py rename to arithmetic_formatter/test_formatter.py index 254ec0b..d5d5b90 100644 --- a/arithmetic_formatter/tests.py +++ b/arithmetic_formatter/test_formatter.py @@ -6,6 +6,7 @@ class UnitTests(unittest.TestCase): + @parameterized.expand([ param(name="test_two_problems_arrangement1", args=[['3801 - 2', '123 + 49']], @@ -59,7 +60,8 @@ class UnitTests(unittest.TestCase): msg='Expected solutions to be correctly displayed in output when calling "arithmetic_arranger()" with ' 'five arithmetic problems and a second argument of `True`.') ]) - def test_arithmetic_formatter(self, name: str, args: List[Union[List[str], Optional[bool]]], expected: str, msg: str): + def test_arithmetic_formatter(self, name: str, args: List[Union[List[str], Optional[bool]]], expected: str, + msg: str): actual: str = formatter(*args) self.assertEqual(actual, expected, msg) diff --git a/budget_app/__init__.py b/budget_app/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/budget_app/tests.py b/budget_app/test_budget.py similarity index 99% rename from budget_app/tests.py rename to budget_app/test_budget.py index 05f2e38..97b5c0b 100644 --- a/budget_app/tests.py +++ b/budget_app/test_budget.py @@ -1,6 +1,6 @@ import unittest -from budget import Category, create_spend_chart +from budget_app.budget import Category, create_spend_chart class UnitTests(unittest.TestCase): diff --git a/polygon_area_calculator/__init__.py b/polygon_area_calculator/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/polygon_area_calculator/tests.py b/polygon_area_calculator/test_polygon_area_calc.py similarity index 98% rename from polygon_area_calculator/tests.py rename to polygon_area_calculator/test_polygon_area_calc.py index 8334900..2d603d2 100644 --- a/polygon_area_calculator/tests.py +++ b/polygon_area_calculator/test_polygon_area_calc.py @@ -1,6 +1,6 @@ import unittest -from calculator import Rectangle, Square +from polygon_area_calculator.calculator import Rectangle, Square class UnitTests(unittest.TestCase): diff --git a/probability_calculator/__init__.py b/probability_calculator/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/probability_calculator/tests.py b/probability_calculator/test_prob_calc.py similarity index 96% rename from probability_calculator/tests.py rename to probability_calculator/test_prob_calc.py index 3a147e5..daaccd3 100644 --- a/probability_calculator/tests.py +++ b/probability_calculator/test_prob_calc.py @@ -1,6 +1,6 @@ import unittest -from calculator import Hat, experiment +from probability_calculator.calculator import Hat, experiment class UnitTests(unittest.TestCase): diff --git a/time_calculator/__init__.py b/time_calculator/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/time_calculator/tests.py b/time_calculator/test_time_calc.py similarity index 100% rename from time_calculator/tests.py rename to time_calculator/test_time_calc.py