Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use pytest-apiver package #4

Merged
merged 2 commits into from
Jun 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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("_")) == []
Loading