summaryrefslogtreecommitdiffstats
path: root/tests/activities/views
diff options
context:
space:
mode:
authorPaolo Melchiorre2022-12-05 18:38:37 +0100
committerGitHub2022-12-05 10:38:37 -0700
commita9bb4a7122df6d9d4a764de52244c6ec75789ead (patch)
tree14ba582f72ac5e3b133b3644ca03e0f027e7c2ef /tests/activities/views
parentdd8e823d2f3ef22fcaa1e43e74f11f7e49eff9e7 (diff)
downloadtakahe-a9bb4a7122df6d9d4a764de52244c6ec75789ead.tar.gz
takahe-a9bb4a7122df6d9d4a764de52244c6ec75789ead.tar.bz2
takahe-a9bb4a7122df6d9d4a764de52244c6ec75789ead.zip
Add pyupgrade with --py310-plus in pre-commit (#103)
Diffstat (limited to 'tests/activities/views')
-rw-r--r--tests/activities/views/test_compose.py2
-rw-r--r--tests/activities/views/test_timelines.py3
2 files changed, 3 insertions, 2 deletions
diff --git a/tests/activities/views/test_compose.py b/tests/activities/views/test_compose.py
index 60bbca1..2b8c4ea 100644
--- a/tests/activities/views/test_compose.py
+++ b/tests/activities/views/test_compose.py
@@ -1,6 +1,6 @@
import re
+from unittest import mock
-import mock
import pytest
from django.core.exceptions import PermissionDenied
diff --git a/tests/activities/views/test_timelines.py b/tests/activities/views/test_timelines.py
index 6c8b355..74bf43d 100644
--- a/tests/activities/views/test_timelines.py
+++ b/tests/activities/views/test_timelines.py
@@ -1,4 +1,5 @@
-import mock
+from unittest import mock
+
import pytest
from activities.views.timelines import Home