]> Nutra Git (v1) - nutratech/cli.git/commitdiff
move todo about ".nutra.test" test home dir
authorShane Jaroch <chown_tee@proton.me>
Fri, 12 Apr 2024 21:03:58 +0000 (17:03 -0400)
committerShane Jaroch <chown_tee@proton.me>
Fri, 12 Apr 2024 21:03:58 +0000 (17:03 -0400)
tests/__init__.py
tests/test_cli.py

index c1e9a1cce7d9fe8650bbac96963739c6ed7f41ae..488950942c39e6ebb05aaaae24b64cd929a6327a 100644 (file)
@@ -4,3 +4,11 @@ Created on Fri Apr 12 16:51:14 2024
 
 @author: shane
 """
+
+# TODO: attach some env props to it, and re-instantiate a CliConfig() class.
+#  We're just setting it on the shell, as an env var, before running tests in CI.
+#  e.g. the equivalent of putting this early in the __init__ file;
+#  os.environ["NUTRA_HOME"] = os.path.join(TEST_HOME, ".nutra.test")
+#  ...
+#  handle setting up the usda.sqlite3 and nt.sqlite3 files in the test home dir.
+#  This will allow us to test the persistence layer, and the API layer, in isolation.
index c7b88608d1ada2ece76b20c09aa192a007a748a2..9e49710ef2bbdf38dde37c51cfbc65cb66df5db4 100644 (file)
@@ -40,12 +40,6 @@ TEST_HOME = os.path.dirname(os.path.abspath(__file__))
 arg_parser = build_arg_parser()
 
 
-# TODO: attach some env props to it, and re-instantiate a CliConfig() class.
-#  We're just setting it on the shell, as an env var, before running tests in CI.
-#  e.g. the equivalent of putting this early in the __init__ file;
-#  os.environ["NUTRA_HOME"] = os.path.join(TEST_HOME, ".nutra.test")
-
-
 class TestCli(unittest.TestCase):
     """
     Original one-stop-shop for testing.