From ce09e5d2d392634eced44c3c8d603d7c628e2822 Mon Sep 17 00:00:00 2001 From: Simon Willison Date: Sat, 11 May 2019 13:58:22 -0700 Subject: [PATCH] Fixed tests relating to #459 --- tests/test_publish_now.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/tests/test_publish_now.py b/tests/test_publish_now.py index dca57654..1894d990 100644 --- a/tests/test_publish_now.py +++ b/tests/test_publish_now.py @@ -77,15 +77,14 @@ def test_publish_now_multiple_aliases(mock_run, mock_which): ) mock_run.assert_has_calls( [ - mock.call(["now", "--token", "XXX"], stdout=subprocess.PIPE), + mock.call(["now", "--token=XXX"], stdout=subprocess.PIPE), mock.call( [ "now", "alias", b"https://demo.example.com/", "alias1", - "--token", - "XXX", + "--token=XXX", ] ), mock.call( @@ -94,8 +93,7 @@ def test_publish_now_multiple_aliases(mock_run, mock_which): "alias", b"https://demo.example.com/", "alias2", - "--token", - "XXX", + "--token=XXX", ] ), ]