Skip to content

Commit

Permalink
Merge pull request #4 from reef-technologies/pytest_apiver
Browse files Browse the repository at this point in the history
use pytest-apiver package
  • Loading branch information
mjurbanski-reef authored Jun 19, 2024
2 parents 955922c + 12e11d4 commit 9237ef0
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 109 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -157,4 +157,4 @@ cython_debug/
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
# and can be added to the global gitignore or merged into this file. For a more nuclear
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
#.idea/
.idea/
1 change: 1 addition & 0 deletions {{cookiecutter.package_name}}/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ DJANGO_SETTINGS_MODULE="tests.settings"
test = [
"freezegun",
"pytest",
"pytest-apiver @ git+https://github.com/reef-technologies/pytest_apiver.git",
"pytest-asyncio",
# COOKIECUTTER{%- if cookiecutter.is_django_package == "y" %}
"pytest-django",
Expand Down
105 changes: 0 additions & 105 deletions {{cookiecutter.package_name}}/tests/apiver_fixtures.py

This file was deleted.

1 change: 0 additions & 1 deletion {{cookiecutter.package_name}}/tests/conftest.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from .apiver_fixtures import * # noqa: F401, F403
# COOKIECUTTER{%- if cookiecutter.is_django_package == "y" -%}
from .django_fixtures import * # noqa: F401, F403
# COOKIECUTTER{%- endif %}
4 changes: 2 additions & 2 deletions {{cookiecutter.package_name}}/tests/unit/api/test_setup.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
def test_apiver_exports(apiver_deps):
assert sorted(name for name in dir(apiver_deps) if not name.startswith("_")) == []
def test_apiver_exports(apiver_module):
assert sorted(name for name in dir(apiver_module) if not name.startswith("_")) == []

0 comments on commit 9237ef0

Please sign in to comment.