diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 3a6c9df..323d547 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -39,6 +39,7 @@ jobs: run: | export POSTGRESQL_PATH="/usr/lib/postgresql/$POSTGRESQL_VERSION/bin/postgres" export INITDB_PATH="/usr/lib/postgresql/$POSTGRESQL_VERSION/bin/initdb" + export PYTHONPATH="pytest_plugins:test_project" pytest - name: Check formatting run: black . --check diff --git a/pytest_plugins/__init__.py b/pytest_plugins/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/pytest_use_postgresql.py b/pytest_plugins/pytest_use_postgresql.py similarity index 99% rename from pytest_use_postgresql.py rename to pytest_plugins/pytest_use_postgresql.py index 42b5ac0..cc8ee5e 100644 --- a/pytest_use_postgresql.py +++ b/pytest_plugins/pytest_use_postgresql.py @@ -1,5 +1,4 @@ import os - import pytest from dj_database_url import parse from django.conf import settings