From 297d31dacad4754a29634a35bd7a04ba12fafd90 Mon Sep 17 00:00:00 2001 From: thePR0M3TH3AN <53631862+PR0M3TH3AN@users.noreply.github.com> Date: Tue, 1 Jul 2025 12:23:18 -0400 Subject: [PATCH] Move root tests to src/tests and update configuration --- README.md | 2 +- pytest.ini | 1 + {tests => src/tests}/test_entries_empty.py | 0 {tests => src/tests}/test_entry_add.py | 0 {tests => src/tests}/test_nostr_backup.py | 0 {tests => src/tests}/test_profiles.py | 0 {tests => src/tests}/test_seed_import.py | 0 7 files changed, 2 insertions(+), 1 deletion(-) rename {tests => src/tests}/test_entries_empty.py (100%) rename {tests => src/tests}/test_entry_add.py (100%) rename {tests => src/tests}/test_nostr_backup.py (100%) rename {tests => src/tests}/test_profiles.py (100%) rename {tests => src/tests}/test_seed_import.py (100%) diff --git a/README.md b/README.md index 2ebab03..0a2e1dd 100644 --- a/README.md +++ b/README.md @@ -188,7 +188,7 @@ Back in the Settings menu you can: ## Running Tests -SeedPass includes a small suite of unit tests. After activating your virtual environment and installing dependencies, run the tests with **pytest**. Use `-vv` to see INFO-level log messages from each passing test: +SeedPass includes a small suite of unit tests located under `src/tests`. After activating your virtual environment and installing dependencies, run the tests with **pytest**. Use `-vv` to see INFO-level log messages from each passing test: ```bash pip install -r src/requirements.txt diff --git a/pytest.ini b/pytest.ini index 11c72fa..981d40f 100644 --- a/pytest.ini +++ b/pytest.ini @@ -1,3 +1,4 @@ [pytest] log_cli = true log_cli_level = INFO +testpaths = src/tests diff --git a/tests/test_entries_empty.py b/src/tests/test_entries_empty.py similarity index 100% rename from tests/test_entries_empty.py rename to src/tests/test_entries_empty.py diff --git a/tests/test_entry_add.py b/src/tests/test_entry_add.py similarity index 100% rename from tests/test_entry_add.py rename to src/tests/test_entry_add.py diff --git a/tests/test_nostr_backup.py b/src/tests/test_nostr_backup.py similarity index 100% rename from tests/test_nostr_backup.py rename to src/tests/test_nostr_backup.py diff --git a/tests/test_profiles.py b/src/tests/test_profiles.py similarity index 100% rename from tests/test_profiles.py rename to src/tests/test_profiles.py diff --git a/tests/test_seed_import.py b/src/tests/test_seed_import.py similarity index 100% rename from tests/test_seed_import.py rename to src/tests/test_seed_import.py