forked from kenzuya/unshackle
test: delete slow, timing-based and redundant tests
This commit is contained in:
@@ -108,11 +108,6 @@ def test_the_named_services_are_the_global_list_else_every_keys_list():
|
||||
assert api_keys({"users": users}) == ["a", "b", "c", "d"]
|
||||
|
||||
|
||||
def test_the_policy_hands_over_the_cap_of_the_service():
|
||||
policy = KeyPolicy({"server_cdm_max_height": {"example1": 720, "default": 1080}})
|
||||
assert (policy.max_height("EXAMPLE1"), policy.max_height(None)) == (720, 1080)
|
||||
|
||||
|
||||
def test_a_key_with_no_entry_gets_every_server_device():
|
||||
serve = {"users": {"k1": {"devices": ["mine"]}}, "devices": [Path("/x/dev.wvd")], "playready_devices": []}
|
||||
assert KeyPolicy.of("k1", serve).devices("devices") == ["mine"]
|
||||
@@ -152,8 +147,3 @@ def test_shared_and_username():
|
||||
)
|
||||
def test_the_entry_check_names_the_first_problem(entry, problem):
|
||||
assert problem in KeyPolicy(entry, {"tiers": {"bot": {}}}).entry_error("serve.users.u")
|
||||
|
||||
|
||||
@pytest.mark.parametrize("value", [None, 1080, {"EXAMPLE1": 720, "default": None}])
|
||||
def test_the_entry_check_accepts_a_good_height_cap(value):
|
||||
assert KeyPolicy({"server_cdm_max_height": value, "tier": "bot"}, {"tiers": {"bot": {}}}).entry_error("u") is None
|
||||
|
||||
Reference in New Issue
Block a user