Skip to content

Commit 4fcf3a7

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent e1d3d81 commit 4fcf3a7

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

courses/views/v1/views_test.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@
1111
import pytest
1212
import reversion
1313
from django.db.models import Count, Q
14-
from django.test import RequestFactory
15-
from django.test import Client
14+
from django.test import Client, RequestFactory
1615
from django.urls import reverse
1716
from requests import ConnectionError as RequestsConnectionError
1817
from requests import HTTPError

users/views_test.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@ def test_cannot_create_user(client):
2626
def test_cannot_update_user(user_client, user):
2727
"""Verify the api to update a user is doesn't accept the verb"""
2828
resp = user_client.patch(
29-
reverse("users_api-detail", kwargs={"pk": user.id}), data={"name": "Name"}, content_type="application/json"
29+
reverse("users_api-detail", kwargs={"pk": user.id}),
30+
data={"name": "Name"},
31+
content_type="application/json",
3032
)
3133
print(user)
3234
print(user.is_authenticated)

0 commit comments

Comments
 (0)