]> Nutra Git (v2) - nutratech/cli.git/commitdiff
rename recipe.utils to recipe.recipe
authorShane Jaroch <chown_tee@proton.me>
Fri, 19 Apr 2024 17:12:04 +0000 (13:12 -0400)
committerShane Jaroch <chown_tee@proton.me>
Fri, 19 Apr 2024 17:12:04 +0000 (13:12 -0400)
ntclient/argparser/funcs.py
ntclient/services/recipe/recipe.py [moved from ntclient/services/recipe/utils.py with 100% similarity]
tests/services/test_recipe.py

index c6e7df4e4f575ae49b288d5136ed64e558e2e4e3..b9f27a01419ec2345f5b386b55814a4cf507ada4 100644 (file)
@@ -15,7 +15,7 @@ from tabulate import tabulate
 
 import ntclient.services.analyze
 import ntclient.services.bugs
-import ntclient.services.recipe.utils
+import ntclient.services.recipe.recipe
 import ntclient.services.usda
 from ntclient.services import calculate as calc
 from ntclient.utils import CLI_CONFIG, Gender, activity_factor_from_index
@@ -81,12 +81,12 @@ def recipes_init(args: argparse.Namespace) -> tuple:
     """Copy example/stock data into RECIPE_HOME"""
     _force = args.force
 
-    return ntclient.services.recipe.utils.recipes_init(_force=_force)
+    return ntclient.services.recipe.recipe.recipes_init(_force=_force)
 
 
 def recipes() -> tuple:
     """Show all, in tree or detail view"""
-    return ntclient.services.recipe.utils.recipes_overview()
+    return ntclient.services.recipe.recipe.recipes_overview()
 
 
 def recipe(args: argparse.Namespace) -> tuple:
@@ -97,7 +97,7 @@ def recipe(args: argparse.Namespace) -> tuple:
     """
     recipe_path = args.path
 
-    return ntclient.services.recipe.utils.recipe_overview(recipe_path=recipe_path)
+    return ntclient.services.recipe.recipe.recipe_overview(recipe_path=recipe_path)
 
 
 ##############################################################################
index a1bf7feb22c160dc703e2f1d255d6491d0faaa17..b3fe9198fdc062f5e1bc46041fed58144d9822fd 100644 (file)
@@ -10,7 +10,7 @@ from unittest.mock import patch
 
 import pytest
 
-import ntclient.services.recipe.utils as r
+import ntclient.services.recipe.recipe as r
 from ntclient.models import Recipe
 from ntclient.services.recipe import RECIPE_STOCK, csv_utils