summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJelle van der Waa <jelle@vdwaa.nl>2019-01-28 21:02:39 +0100
committerJelle van der Waa <jelle@vdwaa.nl>2019-01-28 21:02:39 +0100
commitda18435177e1c68dd0dcd5577576d11fe4a3b342 (patch)
tree5c5416f8439518f9d412612c612c032fe542f68b
parent54ecd257d0cf360ffc68c6a7875d205da4ceb17c (diff)
switch to python3's buildin mock
Instead of using a python module use the build-in mock and remove the module from requirements.txt
-rw-r--r--devel/tests/test_rematch_developers.py2
-rw-r--r--devel/tests/test_reporead.py2
-rw-r--r--mirrors/tests/test_mirrorcheck.py2
-rw-r--r--mirrors/tests/test_mirrorresolv.py2
-rw-r--r--requirements.txt1
5 files changed, 4 insertions, 5 deletions
diff --git a/devel/tests/test_rematch_developers.py b/devel/tests/test_rematch_developers.py
index 395cb63d..07daf50f 100644
--- a/devel/tests/test_rematch_developers.py
+++ b/devel/tests/test_rematch_developers.py
@@ -1,4 +1,4 @@
-from mock import patch
+from unittest.mock import patch
from django.core.management import call_command
diff --git a/devel/tests/test_reporead.py b/devel/tests/test_reporead.py
index 322440c9..0ffe3a17 100644
--- a/devel/tests/test_reporead.py
+++ b/devel/tests/test_reporead.py
@@ -1,5 +1,5 @@
import tarfile
-from mock import patch
+from unittest.mock import patch
from datetime import datetime
diff --git a/mirrors/tests/test_mirrorcheck.py b/mirrors/tests/test_mirrorcheck.py
index ad4e8d25..fd52fe67 100644
--- a/mirrors/tests/test_mirrorcheck.py
+++ b/mirrors/tests/test_mirrorcheck.py
@@ -1,6 +1,6 @@
-import mock
import time
+from unittest import mock
from urllib.error import HTTPError, URLError
diff --git a/mirrors/tests/test_mirrorresolv.py b/mirrors/tests/test_mirrorresolv.py
index 8b37e764..eb7f3e32 100644
--- a/mirrors/tests/test_mirrorresolv.py
+++ b/mirrors/tests/test_mirrorresolv.py
@@ -1,4 +1,4 @@
-import mock
+from unittest import mock
from django.test import TestCase
from django.core.management import call_command
diff --git a/requirements.txt b/requirements.txt
index 7210c86e..9f930137 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -7,7 +7,6 @@ django-countries==5.0
jsmin==2.2.2
pgpdump==1.5
pytz>=2017.3
-mock==2.0.0
parse==1.8.2
django-jinja==2.4.1
sqlparse==0.2.4