コード例 #1
0
def test_get_command_representation(mocker):
    mocker.patch("schemathesis.cli.cassettes.sys.argv",
                 ["schemathesis", "run", "http://example.com/schema.yaml"])
    assert get_command_representation(
    ) == "schemathesis run http://example.com/schema.yaml"
コード例 #2
0
def test_get_command_representation_unknown():
    assert get_command_representation() == "<unknown entrypoint>"