From: Shane Jaroch Date: Sun, 25 Feb 2024 21:46:57 +0000 (-0500) Subject: aaa test package (test order, test_bug depends) X-Git-Tag: v0.2.8.dev0~10 X-Git-Url: https://git.nutra.tk/v1?a=commitdiff_plain;h=4012ca72010ab6c900225a2c1faacc1d8fef0317;p=nutratech%2Fcli.git aaa test package (test order, test_bug depends) it needs the nt.sqlite3 file in place and of the latest version --- diff --git a/tests/aaa/__init__.py b/tests/aaa/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/tests/aaa/test_init.py b/tests/aaa/test_init.py new file mode 100644 index 0000000..0b5be14 --- /dev/null +++ b/tests/aaa/test_init.py @@ -0,0 +1,18 @@ +#!/usr/bin/env python3 +# -*- coding: utf-8 -*- +""" +Created on Sun Feb 25 16:43:56 2024 + +@author: shane + +NOTE: these tests are in a folder "aaa\" which is alphabetically RUN FIRST. + Other tests, such as test_bug, depend on having the newer version of nt.sqlite3 +""" +from ntclient.services import init + + +def test_init(): + """Tests the SQL/persistence init in real time""" + code, result = init(yes=True) + assert code == 0 + assert result diff --git a/tests/test_cli.py b/tests/test_cli.py index b07d017..3c3e830 100644 --- a/tests/test_cli.py +++ b/tests/test_cli.py @@ -50,12 +50,6 @@ class TestCli(unittest.TestCase): @todo: integration tests.. create user, recipe, log.. analyze & compare """ - def test_000_init(self): - """Tests the SQL/persistence init in real time""" - code, result = init(yes=True) - assert code == 0 - assert result - def test_100_usda_sql_funcs(self): """Performs cursory inspection (sanity checks) of usda.sqlite3 image""" version = usda_ver()