fix a typo

This commit is contained in:
Andreas Zweili 2020-12-07 15:41:45 +01:00
parent 3cb5a1f0b9
commit db6bd18b31
2 changed files with 13 additions and 13 deletions

View File

@ -11,9 +11,9 @@ def test_unauthorized_request_backup_method(api_client):
@pytest.mark.django_db
def test_authorized_request_backup_method(api_client_authenticatet):
def test_authorized_request_backup_method(api_client_authenticated):
url = reverse('backupmethod-list')
response = api_client_authenticatet.get(url)
response = api_client_authenticated.get(url)
assert response.status_code == 200
@ -25,9 +25,9 @@ def test_unauthorized_request_backup(api_client):
@pytest.mark.django_db
def test_authorized_request_backup(api_client_authenticatet):
def test_authorized_request_backup(api_client_authenticated):
url = reverse('backup-list')
response = api_client_authenticatet.get(url)
response = api_client_authenticated.get(url)
assert response.status_code == 200
@ -39,9 +39,9 @@ def test_unauthorized_request_target_device(api_client):
@pytest.mark.django_db
def test_authorized_request_target_device(api_client_authenticatet):
def test_authorized_request_target_device(api_client_authenticated):
url = reverse('targetdevice-list')
response = api_client_authenticatet.get(url)
response = api_client_authenticated.get(url)
assert response.status_code == 200
@ -53,9 +53,9 @@ def test_unauthorized_request_notificaton_from_backup(api_client):
@pytest.mark.django_db
def test_authorized_request_notificaton_from_backup(api_client_authenticatet):
def test_authorized_request_notificaton_from_backup(api_client_authenticated):
url = reverse('notificationfrombackup-list')
response = api_client_authenticatet.get(url)
response = api_client_authenticated.get(url)
assert response.status_code == 200
@ -67,9 +67,9 @@ def test_unauthorized_request_notificaton(api_client):
@pytest.mark.django_db
def test_authorized_request_notificaton(api_client_authenticatet):
def test_authorized_request_notificaton(api_client_authenticated):
url = reverse('notification-list')
response = api_client_authenticatet.get(url)
response = api_client_authenticated.get(url)
assert response.status_code == 200
@ -81,7 +81,7 @@ def test_unauthorized_request_notificaton_type(api_client):
@pytest.mark.django_db
def test_authorized_request_notificaton_type(api_client_authenticatet):
def test_authorized_request_notificaton_type(api_client_authenticated):
url = reverse('notificationtype-list')
response = api_client_authenticatet.get(url)
response = api_client_authenticated.get(url)
assert response.status_code == 200

View File

@ -45,7 +45,7 @@ def api_client():
@pytest.fixture
def api_client_authenticatet(db, create_admin_user, api_client):
def api_client_authenticated(db, create_admin_user, api_client):
fixture = create_admin_user()
api_client.force_authenticate(user=fixture['admin'])
yield api_client