From 168b740bcc42815d21b46af2db37ba27f8162d97 Mon Sep 17 00:00:00 2001 From: Hayden Roche Date: Tue, 17 Oct 2023 11:58:28 -0700 Subject: [PATCH] Move fluent API unit test files into their own subdirectory. Prior to this commit, test/conftest.py held a couple pytest fixtures used only for the fluent API unit tests. This commit better isolates those fixtures. --- test/{ => fluent_api}/conftest.py | 2 +- test/{ => fluent_api}/test_card.py | 0 test/{ => fluent_api}/test_env.py | 0 test/{ => fluent_api}/test_file.py | 0 test/{ => fluent_api}/test_hub.py | 0 test/{ => fluent_api}/test_note.py | 0 6 files changed, 1 insertion(+), 1 deletion(-) rename test/{ => fluent_api}/conftest.py (98%) rename test/{ => fluent_api}/test_card.py (100%) rename test/{ => fluent_api}/test_env.py (100%) rename test/{ => fluent_api}/test_file.py (100%) rename test/{ => fluent_api}/test_hub.py (100%) rename test/{ => fluent_api}/test_note.py (100%) diff --git a/test/conftest.py b/test/fluent_api/conftest.py similarity index 98% rename from test/conftest.py rename to test/fluent_api/conftest.py index 63c0d43..ced1a94 100644 --- a/test/conftest.py +++ b/test/fluent_api/conftest.py @@ -4,7 +4,7 @@ from unittest.mock import MagicMock sys.path.insert(0, - os.path.abspath(os.path.join(os.path.dirname(__file__), '..'))) + os.path.abspath(os.path.join(os.path.dirname(__file__), '../..'))) import notecard # noqa: E402 diff --git a/test/test_card.py b/test/fluent_api/test_card.py similarity index 100% rename from test/test_card.py rename to test/fluent_api/test_card.py diff --git a/test/test_env.py b/test/fluent_api/test_env.py similarity index 100% rename from test/test_env.py rename to test/fluent_api/test_env.py diff --git a/test/test_file.py b/test/fluent_api/test_file.py similarity index 100% rename from test/test_file.py rename to test/fluent_api/test_file.py diff --git a/test/test_hub.py b/test/fluent_api/test_hub.py similarity index 100% rename from test/test_hub.py rename to test/fluent_api/test_hub.py diff --git a/test/test_note.py b/test/fluent_api/test_note.py similarity index 100% rename from test/test_note.py rename to test/fluent_api/test_note.py