Skip to content

Commit

Permalink
tests: Don't use fixtures to set plugins per test class
Browse files Browse the repository at this point in the history
This doesn't seem to be needed now (locally at least).
  • Loading branch information
bellisk committed Nov 6, 2024
1 parent 1c0adc4 commit e11b32b
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 9 deletions.
4 changes: 0 additions & 4 deletions ckanext/switzerland/tests/test_infoplus.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,6 @@ def test_config(self):
)
)

@pytest.mark.ckan_config(
"ckan.plugins",
"ogdch ogdch_pkg harvest timetable_harvester fluent scheming_datasets activity",
)
@pytest.mark.usefixtures("with_plugins", "clean_db", "clean_index")
def test_simple(self):
filesystem = self.get_filesystem(filename="FP2016_Jahresfahrplan.zip")
Expand Down
1 change: 0 additions & 1 deletion ckanext/switzerland/tests/test_ist_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ class TestIstFileHarvester(BaseSBBHarvesterTests):
"""

harvester_class = SBBHarvester

@pytest.mark.usefixtures("with_plugins", "clean_db", "clean_index")
def test_simple(self):
filesystem = self.get_filesystem(filename="ist_file.csv")
Expand Down
5 changes: 1 addition & 4 deletions ckanext/switzerland/tests/test_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,7 @@
log = logging.getLogger(__name__)


@pytest.mark.ckan_config(
"ckan.plugins", "ogdch ogdch_pkg harvest fluent scheming_datasets activity"
)
@pytest.mark.usefixtures("clean_db", "clean_index", "with_plugins")
@pytest.mark.usefixtures("with_plugins", "clean_db", "clean_index")
class TestOgdchPackagePlugin(object):
@time_machine.travel(
datetime.datetime(2022, 4, 20, 14, 15, 0, 0, ZoneInfo("UTC")), tick=False
Expand Down

0 comments on commit e11b32b

Please sign in to comment.