From: Shane Jaroch Date: Fri, 12 Apr 2024 21:03:58 +0000 (-0400) Subject: move todo about ".nutra.test" test home dir X-Git-Tag: v0.2.8.dev2~44 X-Git-Url: https://git.nutra.tk/v2?a=commitdiff_plain;h=10ccfcbc19139d5fba3fec4fdc92b0630111f164;p=nutratech%2Fcli.git move todo about ".nutra.test" test home dir --- diff --git a/tests/__init__.py b/tests/__init__.py index c1e9a1c..4889509 100644 --- a/tests/__init__.py +++ b/tests/__init__.py @@ -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. diff --git a/tests/test_cli.py b/tests/test_cli.py index c7b8860..9e49710 100644 --- a/tests/test_cli.py +++ b/tests/test_cli.py @@ -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.