diff --git a/pytest.ini b/pytest.ini new file mode 100644 index 0000000000000000000000000000000000000000..d910476e75e2c6d4f1aa7d56f991a6d0d74e0edf --- /dev/null +++ b/pytest.ini @@ -0,0 +1,4 @@ +[pytest] +testpaths = tests +python_files = tests.py test_*.py +log_level = NOTSET diff --git a/requirements.txt b/requirements.txt index 7e7b17caf364e1750ca4b79a592966a775d81171..1267753b761201ba90a63bdf0b4087ad1050665e 100644 --- a/requirements.txt +++ b/requirements.txt @@ -10,6 +10,8 @@ ## mysqlclient # For connecting to mysql. pytz # For datetime shenanigans. +pytest # Base Pytest package. Current preferred testing method. +pytest-xdist # Additional Pytest features, such as multithreading and looping. ### diff --git a/tests/connectors/core/database.py b/tests/connectors/core/test_database.py similarity index 79% rename from tests/connectors/core/database.py rename to tests/connectors/core/test_database.py index 13a47e9fb104d6c7807cceae05dfebe75e320c8e..8b1cc079e4725ae3563b777050503dde440250bd 100644 --- a/tests/connectors/core/database.py +++ b/tests/connectors/core/test_database.py @@ -18,3 +18,9 @@ class TestCoreDatabase(unittest.TestCase): def setUpClass(cls): # Run parent setup logic. super().setUpClass() + + def test__create_database__success(self): + """""" + + def test__create_database__failure(self): + """""" diff --git a/tests/connectors/core/display.py b/tests/connectors/core/test_display.py similarity index 100% rename from tests/connectors/core/display.py rename to tests/connectors/core/test_display.py diff --git a/tests/connectors/core/query.py b/tests/connectors/core/test_query.py similarity index 100% rename from tests/connectors/core/query.py rename to tests/connectors/core/test_query.py diff --git a/tests/connectors/core/tables.py b/tests/connectors/core/test_tables.py similarity index 100% rename from tests/connectors/core/tables.py rename to tests/connectors/core/test_tables.py diff --git a/tests/connectors/core/validate.py b/tests/connectors/core/test_validate.py similarity index 100% rename from tests/connectors/core/validate.py rename to tests/connectors/core/test_validate.py diff --git a/tests/connectors/mysql/database.py b/tests/connectors/mysql/test_database.py similarity index 100% rename from tests/connectors/mysql/database.py rename to tests/connectors/mysql/test_database.py diff --git a/tests/connectors/mysql/display.py b/tests/connectors/mysql/test_display.py similarity index 100% rename from tests/connectors/mysql/display.py rename to tests/connectors/mysql/test_display.py diff --git a/tests/connectors/mysql/query.py b/tests/connectors/mysql/test_query.py similarity index 100% rename from tests/connectors/mysql/query.py rename to tests/connectors/mysql/test_query.py diff --git a/tests/connectors/mysql/tables.py b/tests/connectors/mysql/test_tables.py similarity index 100% rename from tests/connectors/mysql/tables.py rename to tests/connectors/mysql/test_tables.py diff --git a/tests/connectors/mysql/validate.py b/tests/connectors/mysql/test_validate.py similarity index 100% rename from tests/connectors/mysql/validate.py rename to tests/connectors/mysql/test_validate.py diff --git a/tests/connectors/postgresql/database.py b/tests/connectors/postgresql/test_database.py similarity index 100% rename from tests/connectors/postgresql/database.py rename to tests/connectors/postgresql/test_database.py diff --git a/tests/connectors/postgresql/display.py b/tests/connectors/postgresql/test_display.py similarity index 100% rename from tests/connectors/postgresql/display.py rename to tests/connectors/postgresql/test_display.py diff --git a/tests/connectors/postgresql/query.py b/tests/connectors/postgresql/test_query.py similarity index 100% rename from tests/connectors/postgresql/query.py rename to tests/connectors/postgresql/test_query.py diff --git a/tests/connectors/postgresql/tables.py b/tests/connectors/postgresql/test_tables.py similarity index 100% rename from tests/connectors/postgresql/tables.py rename to tests/connectors/postgresql/test_tables.py diff --git a/tests/connectors/postgresql/validate.py b/tests/connectors/postgresql/test_validate.py similarity index 100% rename from tests/connectors/postgresql/validate.py rename to tests/connectors/postgresql/test_validate.py diff --git a/tests/connectors/sqlite/database.py b/tests/connectors/sqlite/test_database.py similarity index 100% rename from tests/connectors/sqlite/database.py rename to tests/connectors/sqlite/test_database.py diff --git a/tests/connectors/sqlite/display.py b/tests/connectors/sqlite/test_display.py similarity index 100% rename from tests/connectors/sqlite/display.py rename to tests/connectors/sqlite/test_display.py diff --git a/tests/connectors/sqlite/query.py b/tests/connectors/sqlite/test_query.py similarity index 100% rename from tests/connectors/sqlite/query.py rename to tests/connectors/sqlite/test_query.py diff --git a/tests/connectors/sqlite/tables.py b/tests/connectors/sqlite/test_tables.py similarity index 100% rename from tests/connectors/sqlite/tables.py rename to tests/connectors/sqlite/test_tables.py diff --git a/tests/connectors/sqlite/validate.py b/tests/connectors/sqlite/test_validate.py similarity index 100% rename from tests/connectors/sqlite/validate.py rename to tests/connectors/sqlite/test_validate.py