From 4012ca72010ab6c900225a2c1faacc1d8fef0317 Mon Sep 17 00:00:00 2001 From: Shane Jaroch Date: Sun, 25 Feb 2024 16:46:57 -0500 Subject: [PATCH] aaa test package (test order, test_bug depends) it needs the nt.sqlite3 file in place and of the latest version --- tests/aaa/__init__.py | 0 tests/aaa/test_init.py | 18 ++++++++++++++++++ tests/test_cli.py | 6 ------ 3 files changed, 18 insertions(+), 6 deletions(-) create mode 100644 tests/aaa/__init__.py create mode 100644 tests/aaa/test_init.py 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() -- 2.52.0