diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index 70ca413..7941bc9 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -26,7 +26,7 @@ RUN python -m pip install --upgrade pip COPY . . # install devcontainer requirements -RUN pip install -e .[dev] +RUN pip install -e .[dev,test] # install docs requirements RUN pip install --no-cache-dir -r docs/requirements.txt diff --git a/pyproject.toml b/pyproject.toml index 82f7ddc..df5b93e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -20,6 +20,14 @@ dev = [ "pre-commit" ] +test = [ + "coverage", + "pytest", + "pytest-django", + "pytest-mock", + "pytest-socket", +] + [project.urls] Code = "https://github.com/compilerla/pems" Homepage = "https://compilerla.github.io/pems/" @@ -34,6 +42,12 @@ line-length = 127 target-version = ['py312'] include = '\.pyi?$' +[tool.pytest.ini_options] +DJANGO_SETTINGS_MODULE = "pems.settings" +markers = [ + "request_path: use with session_request to initialize with the given path", +] + [tool.setuptools.packages.find] include = ["pems*"] namespaces = false