chore(api): fix some linting errors

This commit is contained in:
jo 2022-06-22 13:27:10 +02:00 committed by Kyle Robbertze
parent 1e83a91b5e
commit ec8c18097d
6 changed files with 7 additions and 8 deletions

View file

@ -51,7 +51,7 @@ class TestPermissions(APITestCase):
"webstreams",
]
def logged_in_test_model(self, model, role, username, fn):
def logged_in_test_model(self, model, role, username, function):
path = self.path.format(model)
if not get_user_model().objects.filter(username=username):
get_user_model().objects.create_user(
@ -63,7 +63,7 @@ class TestPermissions(APITestCase):
last_name="user",
)
self.client.login(username=username, password="test")
return fn(path)
return function(path)
@classmethod
def setUpTestData(cls):