Skip to content

Commit

Permalink
Support testing w/ click 6.x
Browse files Browse the repository at this point in the history
  • Loading branch information
wonkyweirdy committed Jun 5, 2020
1 parent 4d09890 commit 09b0632
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_stramp.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
def test_help():
runner = CliRunner()
result = runner.invoke(main, '--help')
assert result.exit_code == 0
assert result.exit_code in (0, 2) # Differs depending on click version?


def test_hash_only():
Expand All @@ -39,7 +39,7 @@ def test_hash_only():
with mock.patch('stramp.paths.paths.app_dir_path', Path(os.getcwd())):
result = runner.invoke(main, ['--hash-only', sample_file])
assert result.exit_code == 0
d = json.loads(result.stdout)
d = json.loads(result.output)
assert len(d) == 2
assert d['generator'] == 'stramp'
assert len(d['documents']) == 1
Expand Down

0 comments on commit 09b0632

Please sign in to comment.