Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Arch Linux
arch-release-promotion
Commits
eb6f1eb9
Verified
Commit
eb6f1eb9
authored
Apr 14, 2022
by
David Runge
🐿
Browse files
Apply black
tests/test_torrent.py: Apply black to the file.
parent
dd287997
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/test_torrent.py
View file @
eb6f1eb9
...
...
@@ -17,12 +17,9 @@ def test_get_webseeds(urlopen_mock: Mock) -> None:
lines
=
b
"# foo bar baz
\n
#Server = https://foo.bar/$repo/os/$arch
\n
"
urlopen_mock
.
return_value
=
MagicMock
(
read
=
Mock
(
return_value
=
lines
))
assert
(
torrent
.
get_webseeds
(
artifact_type
=
artifact_type
,
mirrorlist_url
=
mirrorlist_url
,
version
=
version
,
)
==
[
f
"https://foo.bar/releases/
{
artifact_type
}
/
{
version
}
/"
]
)
assert
torrent
.
get_webseeds
(
artifact_type
=
artifact_type
,
mirrorlist_url
=
mirrorlist_url
,
version
=
version
,
)
==
[
f
"https://foo.bar/releases/
{
artifact_type
}
/
{
version
}
/"
]
urlopen_mock
.
assert_called_once_with
(
mirrorlist_url
)
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