]> Nutra Git (v1) - nutratech/cli.git/commitdiff
wip testing, bleh
authorShane Jaroch <chown_tee@proton.me>
Sun, 25 Feb 2024 20:33:11 +0000 (15:33 -0500)
committerShane Jaroch <chown_tee@proton.me>
Sun, 25 Feb 2024 20:33:11 +0000 (15:33 -0500)
tests/test_cli.py

index 9a0dd97e8881aa2c3dd28a98d3a93a656063d6b7..1add411e29406fac591a38393cf8fe9df57ce893 100644 (file)
@@ -29,7 +29,7 @@ from ntclient.persistence.sql.nt.funcs import sql_nt_next_index
 from ntclient.persistence.sql.usda import funcs as usda_funcs
 from ntclient.persistence.sql.usda import sql as _usda_sql
 from ntclient.persistence.sql.usda import usda_ver
-from ntclient.services import init, usda
+from ntclient.services import bugs, init, usda
 from ntclient.services.recipe import RECIPE_HOME
 from ntclient.utils import CLI_CONFIG
 from ntclient.utils.exceptions import SqlInvalidVersionError
@@ -435,3 +435,9 @@ class TestCli(unittest.TestCase):
             _food_amts={1001: 100}, _food_analyses=analysis, _nutrients=nutrients
         )
         assert output
+
+    def test_1000_bugs(self):
+        """Tests the functions for listing and submitting bugs"""
+        bugs.list_bugs()
+        # TODO: this should be mocked
+        bugs.submit_bugs()