Skip to content

Commit

Permalink
test: Use --hypothesis-max-examples in a slow test
Browse files Browse the repository at this point in the history
  • Loading branch information
Stranger6667 committed Jan 7, 2021
1 parent 40b1860 commit 63622e7
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions test/cli/test_commands.py
Expand Up @@ -512,8 +512,12 @@ def test_cli_run_only_failure(cli, cli_args, workers):


@pytest.mark.operations("upload_file")
def test_cli_binary_body(cli, schema_url):
result = cli.run(schema_url, "--hypothesis-suppress-health-check=filter_too_much")
def test_cli_binary_body(cli, schema_url, hypothesis_max_examples):
result = cli.run(
schema_url,
"--hypothesis-suppress-health-check=filter_too_much",
f"--hypothesis-max-examples={hypothesis_max_examples or 1}",
)
assert result.exit_code == ExitCode.OK, result.stdout
assert " HYPOTHESIS OUTPUT " not in result.stdout

Expand Down

0 comments on commit 63622e7

Please sign in to comment.