Fixed tests relating to #459

This commit is contained in:
Simon Willison 2019-05-11 13:58:22 -07:00
commit ce09e5d2d3

View file

@ -77,15 +77,14 @@ def test_publish_now_multiple_aliases(mock_run, mock_which):
) )
mock_run.assert_has_calls( mock_run.assert_has_calls(
[ [
mock.call(["now", "--token", "XXX"], stdout=subprocess.PIPE), mock.call(["now", "--token=XXX"], stdout=subprocess.PIPE),
mock.call( mock.call(
[ [
"now", "now",
"alias", "alias",
b"https://demo.example.com/", b"https://demo.example.com/",
"alias1", "alias1",
"--token", "--token=XXX",
"XXX",
] ]
), ),
mock.call( mock.call(
@ -94,8 +93,7 @@ def test_publish_now_multiple_aliases(mock_run, mock_which):
"alias", "alias",
b"https://demo.example.com/", b"https://demo.example.com/",
"alias2", "alias2",
"--token", "--token=XXX",
"XXX",
] ]
), ),
] ]