Skip to content

Commit

Permalink
Skip non-example tests on Windows
Browse files Browse the repository at this point in the history
Windows needs to be next to the 'bin' directory to find programs.
  • Loading branch information
jacebrowning committed Feb 9, 2019
1 parent 500e9d5 commit 888b7e1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/test_cli.py
Expand Up @@ -179,6 +179,7 @@ def it_exits_with_an_error_code_if_enabled(cli):

def describe_quiet():

@pytest.mark.skipif(sys.platform == 'win32', reason="unix only")
def it_hides_output_when_no_error(cli, tmp_path):
verchew_ini = tmp_path / 'verchew.ini'
verchew_ini.write_text("""
Expand All @@ -194,6 +195,7 @@ def it_hides_output_when_no_error(cli, tmp_path):
expect(cmd.stdout) == ""
expect(cmd.returncode) == 0

@pytest.mark.skipif(sys.platform == 'win32', reason="unix only")
def it_shows_failing_programs(cli, tmp_path):
verchew_ini = tmp_path / 'verchew.ini'
verchew_ini.write_text("""
Expand Down

0 comments on commit 888b7e1

Please sign in to comment.