mirror of
https://github.com/unshackle-dl/unshackle.git
synced 2026-12-06 07:55:10 +00:00
test: delete slow, timing-based and redundant tests
This commit is contained in:
@@ -63,12 +63,6 @@ def test_the_server_proxy_stamp_comes_from_the_key_policy(server):
|
||||
assert admit({"server_proxy": True}).params["server_proxy"] is False
|
||||
|
||||
|
||||
def test_the_parameter_check_leaves_the_request_body_as_it_is(server):
|
||||
body = {"output_dir": "shows"}
|
||||
assert job_admission.check_parameters(body)["output_dir"] == str((server / "shows").resolve())
|
||||
assert body == {"output_dir": "shows"}
|
||||
|
||||
|
||||
def test_a_profile_that_names_a_path_is_invalid_parameters(server):
|
||||
with pytest.raises(APIError) as ei:
|
||||
admit({"profile": "../x"})
|
||||
|
||||
Reference in New Issue
Block a user