From a9bb4a7122df6d9d4a764de52244c6ec75789ead Mon Sep 17 00:00:00 2001 From: Paolo Melchiorre Date: Mon, 5 Dec 2022 18:38:37 +0100 Subject: Add pyupgrade with --py310-plus in pre-commit (#103) --- tests/activities/views/test_compose.py | 2 +- tests/activities/views/test_timelines.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'tests/activities/views') 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 -- cgit v1.2.3