From 10ccfcbc19139d5fba3fec4fdc92b0630111f164 Mon Sep 17 00:00:00 2001 From: Shane Jaroch Date: Fri, 12 Apr 2024 17:03:58 -0400 Subject: [PATCH] move todo about ".nutra.test" test home dir --- tests/__init__.py | 8 ++++++++ tests/test_cli.py | 6 ------ 2 files changed, 8 insertions(+), 6 deletions(-) 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. -- 2.52.0