Skip to content

Commit

Permalink
tests: Fix test user name
Browse files Browse the repository at this point in the history
  • Loading branch information
bellisk committed Nov 5, 2024
1 parent 6cae869 commit 1c0adc4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ckanext/switzerland/tests/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def user():


def harvest_user():
return factories.User(id="harvest", sysadmin=True)
return factories.User(name="harvest", sysadmin=True)


def organization(user):
Expand Down
1 change: 1 addition & 0 deletions ckanext/switzerland/tests/fixtures/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

from ckanext.harvest import queue


@pytest.fixture
def clean_db(reset_db, migrate_db_for):
reset_db()
Expand Down
3 changes: 2 additions & 1 deletion ckanext/switzerland/tests/test_infoplus.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ def test_config(self):
)

@pytest.mark.ckan_config(
"ckan.plugins", "ogdch ogdch_pkg harvest timetable_harvester fluent scheming_datasets activity"
"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):
Expand Down

0 comments on commit 1c0adc4

Please sign in to comment.