Skip to content

Commit

Permalink
Applied Black, refs #1178
Browse files Browse the repository at this point in the history
  • Loading branch information
simonw committed Jan 6, 2021
1 parent e1efa9b commit 97fb10c
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions tests/test_publish_cloudrun.py
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,10 @@ def test_publish_cloudrun_apt_get_install(mock_call, mock_output, mock_which):
"extra_options,expected",
[
("", "--setting force_https_urls on"),
("--setting base_url /foo", "--setting base_url /foo --setting force_https_urls on"),
(
"--setting base_url /foo",
"--setting base_url /foo --setting force_https_urls on",
),
("--setting force_https_urls off", "--setting force_https_urls off"),
],
)
Expand Down Expand Up @@ -313,5 +316,9 @@ def test_publish_cloudrun_extra_options(
.strip()
)
last_line = dockerfile.split("\n")[-1]
extra_options = last_line.split("--inspect-file inspect-data.json")[1].split("--port")[0].strip()
assert extra_options == expected
extra_options = (
last_line.split("--inspect-file inspect-data.json")[1]
.split("--port")[0]
.strip()
)
assert extra_options == expected

0 comments on commit 97fb10c

Please sign in to comment.