Skip to content

Commit

Permalink
Load plugins in validation tests
Browse files Browse the repository at this point in the history
  • Loading branch information
amercader committed Jun 14, 2024
1 parent 156033f commit ec5617b
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions ckanext/scheming/tests/test_validation.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,21 @@
not_empty = get_validator("not_empty")


pytestmark = [
pytest.mark.usefixtures("with_plugins"),
pytest.mark.ckan_config(
"ckan.plugins",
[
"scheming_datasets",
"scheming_groups",
"scheming_organizations",
"scheming_test_plugin",
"scheming_subfields_index"
]
)
]


class TestGetValidatorOrConverter(object):
def test_missing(self):
with pytest.raises(SchemingException):
Expand Down

0 comments on commit ec5617b

Please sign in to comment.