Skip to content

Commit

Permalink
Fix tests for icat5
Browse files Browse the repository at this point in the history
  • Loading branch information
Reillyhewitson committed Nov 3, 2022
1 parent 3a5a4a3 commit 55574cb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions test/datagateway_api/db/endpoints/test_create_db.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ def test_valid_create_data(self, flask_test_app_db, valid_db_credentials_header)
"doi": "DataGateway API DB Test DOI",
"facilityID": 1,
"typeID": 1,
"fileCount": 1,
"fileSize": 6,
}
for i in range(2)
]
Expand Down Expand Up @@ -63,6 +65,8 @@ def test_valid_boundary_create_data(
"doi": "DataGateway API Test DOI",
"facilityID": 1,
"typeID": 1,
"fileCount": 3,
"fileSize": 2,
}

test_response = flask_test_app_db.post(
Expand Down
2 changes: 1 addition & 1 deletion test/datagateway_api/db/endpoints/test_update_by_id_db.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,4 @@ def test_invalid_update_with_id(
json=invalid_update_json,
)

assert test_response.status_code == 400
assert test_response.json["doi"] == "_" * 255

0 comments on commit 55574cb

Please sign in to comment.