summaryrefslogtreecommitdiffstats
path: root/mirrors
diff options
context:
space:
mode:
authorJelle van der Waa <jelle@vdwaa.nl>2019-01-21 20:28:21 +0100
committerJelle van der Waa <jelle@vdwaa.nl>2019-01-21 21:20:19 +0100
commite0700d40aa9e5f2e3e2b32d6743768bb0057d330 (patch)
tree70bff94263b2c6c77167c1878ef9a46df000ef9c /mirrors
parentdc4719d2dac31596bf3110c344ac57b62b21e845 (diff)
downloadarchweb-e0700d40aa9e5f2e3e2b32d6743768bb0057d330.tar.gz
archweb-e0700d40aa9e5f2e3e2b32d6743768bb0057d330.zip
mirrors: tests: rename duplicate function
Two functions where called test_valid, rename one.
Diffstat (limited to 'mirrors')
-rw-r--r--mirrors/tests/test_mirrorcheck.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mirrors/tests/test_mirrorcheck.py b/mirrors/tests/test_mirrorcheck.py
index 4a2c8173..9bee3b3d 100644
--- a/mirrors/tests/test_mirrorcheck.py
+++ b/mirrors/tests/test_mirrorcheck.py
@@ -47,7 +47,7 @@ class MirrorCheckTest(TestCase):
@mock.patch('urllib.request.Request')
@mock.patch('urllib.request.urlopen')
- def test_valid(self, urlopen, Request):
+ def test_valid_olddate(self, urlopen, Request):
urlopen.return_value.read.return_value = str(int(time.time()))
Request.get_host.return_value = 'archlinux.org'
Request.type.return_value = 'https'