]> Nutra Git (v2) - nutratech/cli.git/commitdiff
add recipe_csv_util tests
authorShane Jaroch <chown_tee@proton.me>
Sun, 25 Feb 2024 21:10:45 +0000 (16:10 -0500)
committerShane Jaroch <chown_tee@proton.me>
Sun, 25 Feb 2024 21:10:45 +0000 (16:10 -0500)
tests/services/test_recipe.py

index f7985f5098124698bd5547a9297ff814f66c6944..fbab1d86708ba57f1785e987b4311d569baf3f6d 100644 (file)
@@ -10,7 +10,7 @@ import unittest
 import pytest
 
 import ntclient.services.recipe.utils as r
-from ntclient.services.recipe import RECIPE_STOCK
+from ntclient.services.recipe import RECIPE_STOCK, csv_utils
 
 
 class TestRecipe(unittest.TestCase):
@@ -46,3 +46,15 @@ class TestRecipe(unittest.TestCase):
             os.path.join(RECIPE_STOCK, "dinner", "burrito-bowl.csv")
         )
         assert exit_code in {0, 1}
+
+    def test_recipe_csv_utils(self):
+        """Test the (largely unused) CSV utils module"""
+        _csv_files = csv_utils.csv_files()
+        assert _csv_files
+
+        _csv_recipes = csv_utils.csv_recipes()
+        assert _csv_recipes
+
+        # sanity executions
+        csv_utils.csv_recipe_print_tree()
+        csv_utils.csv_print_details()