See #297: removed a lot of unused variables
This commit is contained in:
parent
9bea804f14
commit
799386c2b6
28 changed files with 77 additions and 97 deletions
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
from funkwhale_api.instance import stats
|
||||
|
||||
|
||||
|
|
@ -54,7 +53,7 @@ def test_get(mocker):
|
|||
"listenings",
|
||||
"music_duration",
|
||||
]
|
||||
mocks = [
|
||||
[
|
||||
mocker.patch.object(stats, "get_{}".format(k), return_value=i)
|
||||
for i, k in enumerate(keys)
|
||||
]
|
||||
|
|
|
|||
|
|
@ -11,9 +11,7 @@ def test_permissions(assert_user_permission, view, permissions):
|
|||
|
||||
def test_nodeinfo_endpoint(db, api_client, mocker):
|
||||
payload = {"test": "test"}
|
||||
mocked_nodeinfo = mocker.patch(
|
||||
"funkwhale_api.instance.nodeinfo.get", return_value=payload
|
||||
)
|
||||
mocker.patch("funkwhale_api.instance.nodeinfo.get", return_value=payload)
|
||||
url = reverse("api:v1:instance:nodeinfo-2.0")
|
||||
response = api_client.get(url)
|
||||
ct = "application/json; profile=http://nodeinfo.diaspora.software/ns/schema/2.0#; charset=utf-8" # noqa
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue