Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ihabunek committed Jul 31, 2019
1 parent aa208cf commit 42247f9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/test_console.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ def test_post_defaults(mock_post, mock_uuid, capsys):
'sensitive': "false",
'spoiler_text': None,
'in_reply_to_id': None,
'language': None,
}, headers={"Idempotency-Key": "rock-on"})

out, err = capsys.readouterr()
Expand All @@ -62,7 +63,8 @@ def test_post_with_options(mock_post, mock_uuid, capsys):
'--visibility', 'unlisted',
'--sensitive',
'--spoiler-text', 'Spoiler!',
'--reply-to', '123'
'--reply-to', '123',
'--language', 'hrv',
]

mock_post.return_value = MockResponse({
Expand All @@ -78,6 +80,7 @@ def test_post_with_options(mock_post, mock_uuid, capsys):
'sensitive': "true",
'spoiler_text': "Spoiler!",
'in_reply_to_id': 123,
'language': 'hrv',
}, headers={"Idempotency-Key": "up-the-irons"})

out, err = capsys.readouterr()
Expand Down

0 comments on commit 42247f9

Please sign in to comment.