This commit is contained in:
Eliot Berriot 2019-01-10 11:10:39 +01:00
parent d63f8f2e33
commit 4811f35eb5
No known key found for this signature in database
GPG key ID: DD6965E2476E5C27
4 changed files with 8 additions and 10 deletions

View file

@ -79,7 +79,7 @@ def test_retrieve_ap_object_honor_instance_policy_different_url_and_id(
block_all=True, for_domain=True
).target_domain
fid = "https://ok/test"
m = r_mock.get(fid, json={"id": "http://{}/test".format(domain.name)})
r_mock.get(fid, json={"id": "http://{}/test".format(domain.name)})
with pytest.raises(exceptions.BlockedActorOrDomain):
utils.retrieve_ap_object(fid)