Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Jelle van der Waa
Archweb
Commits
e0700d40
Commit
e0700d40
authored
Jan 21, 2019
by
Jelle van der Waa
🚧
Browse files
mirrors: tests: rename duplicate function
Two functions where called test_valid, rename one.
parent
dc4719d2
Changes
1
Hide whitespace changes
Inline
Side-by-side
mirrors/tests/test_mirrorcheck.py
View file @
e0700d40
...
...
@@ -47,7 +47,7 @@ def test_valid(self, urlopen, Request):
@
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'
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment