Skip to content

Commit c583d43

Browse files
committed
Update test using old auth
1 parent cc7ba26 commit c583d43

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

ckanext/dcat/tests/test_blueprints.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -244,11 +244,11 @@ def test_dataset_not_found(self, app):
244244
app.get(url, status=404)
245245

246246
def test_dataset_form_is_rendered(self, app):
247-
sysadmin = factories.Sysadmin()
248-
env = {"REMOTE_USER": sysadmin["name"].encode("ascii")}
247+
sysadmin = factories.SysadminWithToken()
248+
headers = {"Authorization": sysadmin["token"]}
249249
url = url_for("dataset.new")
250250

251-
response = app.get(url, extra_environ=env)
251+
response = app.get(url, headers=headers)
252252

253253
content = response.body
254254

0 commit comments

Comments
 (0)