diff options
author | Jelle van der Waa <jelle@vdwaa.nl> | 2019-01-21 20:28:21 +0100 |
---|---|---|
committer | Jelle van der Waa <jelle@vdwaa.nl> | 2019-01-21 21:20:19 +0100 |
commit | e0700d40aa9e5f2e3e2b32d6743768bb0057d330 (patch) | |
tree | 70bff94263b2c6c77167c1878ef9a46df000ef9c /mirrors | |
parent | dc4719d2dac31596bf3110c344ac57b62b21e845 (diff) | |
download | archweb-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.py | 2 |
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' |