Skip to content

Commit

Permalink
Specify format in tests because of ckan/ckan#7415
Browse files Browse the repository at this point in the history
  • Loading branch information
amercader committed Feb 23, 2023
1 parent d9598c5 commit 3af20e2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ckanext/validation/tests/test_uploader.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ def test_update_upload_with_schema(app):

data = {
"upload": (io.BytesIO(bytes(VALID_CSV.encode("utf8"))), "valid.csv"),
"format": "CSV",
}

app.post(
Expand Down Expand Up @@ -179,6 +180,8 @@ def test_update_upload_no_tabular_no_schema(app):

data = {
"upload": (io.BytesIO(b"test file"), "some.txt"),
"format": "TXT",

}

app.post(
Expand Down

0 comments on commit 3af20e2

Please sign in to comment.