Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
roywilly committed Feb 6, 2024
1 parent 5fcf0cb commit bea389e
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions tests/test_access/tst_access_no_access_login.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,15 +71,15 @@ def test_write(explorer: Explorer):

with open("./tests/data/test_case_080/case2.json") as json_file:
metadata = json.load(json_file)
response = explorer._sumo.post("/objects", json=metadata)
print(response.status_code)
print(response.text)
print("RESP:", response.status_code)
assert response.status_code not in [200, 201]
print("RESP:", response.text)
assert response.text
# TODO should throw exception
assert True == False # TODO Implement this
with pytest.raises(Exception, match="403*"):
print(
"About to call a write endpoint which should raise exception"
)
response = explorer._sumo.post("/objects", json=metadata)
print("Execution should never reach this line")
print("Unexpected status: ", response.status_code)
print("Unexpected response: ", response.text)
assert True == False


def test_read_restricted_classification_data(explorer: Explorer):
Expand Down

0 comments on commit bea389e

Please sign in to comment.