This commit is contained in:
Eliot Berriot 2018-12-27 20:39:03 +01:00
commit 942e9a15cb
No known key found for this signature in database
GPG key ID: DD6965E2476E5C27
4 changed files with 6 additions and 11 deletions

View file

@ -107,9 +107,7 @@ def test_domain_nodeinfo(factories, superuser_api_client, mocker):
def test_domain_stats(factories, superuser_api_client, mocker):
domain = factories["federation.Domain"]()
get_stats = mocker.patch.object(
domain.__class__, "get_stats", return_value={"hello": "world"}
)
mocker.patch.object(domain.__class__, "get_stats", return_value={"hello": "world"})
url = reverse("api:v1:manage:federation:domains-stats", kwargs={"pk": domain.name})
response = superuser_api_client.get(url)
assert response.status_code == 200