Skip to content

Commit

Permalink
fixture
Browse files Browse the repository at this point in the history
  • Loading branch information
avdata99 committed Jan 15, 2025
1 parent 15bddb0 commit a9d7eda
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
7 changes: 7 additions & 0 deletions ckanext/saml2auth/tests/fixtures.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import pytest


@pytest.fixture(autouse=True)
def load_standard_plugins(with_plugins):
""" Use 'with_plugins' fixture in ALL tests """
pass
10 changes: 7 additions & 3 deletions conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,13 @@
from ckan.plugins import toolkit


pytest_plugins = [
'ckanext.saml2auth.tests.fixtures',
]

if toolkit.check_ckan_version(max_version='2.10.99'):

pytest_plugins = [
u'ckan.tests.pytest_ckan.ckan_setup',
u'ckan.tests.pytest_ckan.fixtures',
pytest_plugins += [
'ckan.tests.pytest_ckan.ckan_setup',
'ckan.tests.pytest_ckan.fixtures',
]

0 comments on commit a9d7eda

Please sign in to comment.