Skip to content

Commit

Permalink
test: Test base_url in test_schema_validity
Browse files Browse the repository at this point in the history
  • Loading branch information
Stranger6667 committed Feb 9, 2020
1 parent e9b3c73 commit 3b6632c
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions test/cli/test_crashes.py
Expand Up @@ -99,11 +99,14 @@ def test_valid_parameters_combos(cli, schema_url, params, flags, multiple_params
check_result(result)


@given(schema=urls() | paths() | st.text())
@example("//bla")
@given(schema=urls() | paths() | st.text(), base_url=urls() | paths() | st.text() | st.none())
@example(schema="//bla", base_url=None)
@pytest.mark.usefixtures("mocked_schema")
def test_schema_validity(cli, schema):
result = cli.run(schema)
def test_schema_validity(cli, schema, base_url):
args = ()
if base_url:
args = (f"--base-url={base_url}",)
result = cli.run(schema, *args)
check_result(result)


Expand Down

0 comments on commit 3b6632c

Please sign in to comment.