def test_05(): validate(PASS_SWAGGER, swaggers) with pytest.raises(ValueError): validate(PASS_SWAGGER, openapis) with pytest.raises(ValueError): validate(PASS_OPENAPI, swaggers)
def test_02(): validate(PASS_TRANSLATOR, {"openapi": openapis["openapi_v3"]}) validate(PASS_TRANSLATOR, {"x-translator": openapis["x-translator"]}) validate(PASS_TRANSLATOR, openapis)
def test_04(): validate(FAIL_TRANSLATOR_2, {"openapi": openapis["openapi_v3"]}) with pytest.raises(ValueError): validate(FAIL_TRANSLATOR_2, openapis)
def test_01(): validate(PASS_OPENAPI, {"openapi": openapis["openapi_v3"]}) validate(PASS_OPENAPI, openapis)