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"
def test_get_command_representation_unknown(): assert get_command_representation() == "<unknown entrypoint>"