Skip to content
This repository was archived by the owner on Dec 25, 2024. It is now read-only.
  •  
  •  
  •  
522 changes: 0 additions & 522 deletions samples/client/3_0_3_unit_test/python/.openapi-generator/FILES

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@

class Test_Not(unittest.TestCase):
"""_Not unit test stubs"""
configuration = schema_configuration.SchemaConfiguration()
configuration = schema_configuration.SchemaConfiguration(
disabled_json_schema_keywords={'format'}
)

def test_allowed_passes(self):
# allowed
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@

class TestAdditionalpropertiesAllowsASchemaWhichShouldValidate(unittest.TestCase):
"""AdditionalpropertiesAllowsASchemaWhichShouldValidate unit test stubs"""
configuration = schema_configuration.SchemaConfiguration()
configuration = schema_configuration.SchemaConfiguration(
disabled_json_schema_keywords={'format'}
)

def test_no_additional_properties_is_valid_passes(self):
# no additional properties is valid
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@

class TestAdditionalpropertiesAreAllowedByDefault(unittest.TestCase):
"""AdditionalpropertiesAreAllowedByDefault unit test stubs"""
configuration = schema_configuration.SchemaConfiguration()
configuration = schema_configuration.SchemaConfiguration(
disabled_json_schema_keywords={'format'}
)

def test_additional_properties_are_allowed_passes(self):
# additional properties are allowed
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@

class TestAdditionalpropertiesCanExistByItself(unittest.TestCase):
"""AdditionalpropertiesCanExistByItself unit test stubs"""
configuration = schema_configuration.SchemaConfiguration()
configuration = schema_configuration.SchemaConfiguration(
disabled_json_schema_keywords={'format'}
)

def test_an_additional_invalid_property_is_invalid_fails(self):
# an additional invalid property is invalid
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@

class TestAdditionalpropertiesShouldNotLookInApplicators(unittest.TestCase):
"""AdditionalpropertiesShouldNotLookInApplicators unit test stubs"""
configuration = schema_configuration.SchemaConfiguration()
configuration = schema_configuration.SchemaConfiguration(
disabled_json_schema_keywords={'format'}
)

def test_properties_defined_in_allof_are_not_examined_fails(self):
# properties defined in allOf are not examined
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@

class TestAllof(unittest.TestCase):
"""Allof unit test stubs"""
configuration = schema_configuration.SchemaConfiguration()
configuration = schema_configuration.SchemaConfiguration(
disabled_json_schema_keywords={'format'}
)

def test_allof_passes(self):
# allOf
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@

class TestAllofCombinedWithAnyofOneof(unittest.TestCase):
"""AllofCombinedWithAnyofOneof unit test stubs"""
configuration = schema_configuration.SchemaConfiguration()
configuration = schema_configuration.SchemaConfiguration(
disabled_json_schema_keywords={'format'}
)

def test_allof_true_anyof_false_oneof_false_fails(self):
# allOf: true, anyOf: false, oneOf: false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@

class TestAllofSimpleTypes(unittest.TestCase):
"""AllofSimpleTypes unit test stubs"""
configuration = schema_configuration.SchemaConfiguration()
configuration = schema_configuration.SchemaConfiguration(
disabled_json_schema_keywords={'format'}
)

def test_valid_passes(self):
# valid
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@

class TestAllofWithBaseSchema(unittest.TestCase):
"""AllofWithBaseSchema unit test stubs"""
configuration = schema_configuration.SchemaConfiguration()
configuration = schema_configuration.SchemaConfiguration(
disabled_json_schema_keywords={'format'}
)

def test_valid_passes(self):
# valid
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@

class TestAllofWithOneEmptySchema(unittest.TestCase):
"""AllofWithOneEmptySchema unit test stubs"""
configuration = schema_configuration.SchemaConfiguration()
configuration = schema_configuration.SchemaConfiguration(
disabled_json_schema_keywords={'format'}
)

def test_any_data_is_valid_passes(self):
# any data is valid
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@

class TestAllofWithTheFirstEmptySchema(unittest.TestCase):
"""AllofWithTheFirstEmptySchema unit test stubs"""
configuration = schema_configuration.SchemaConfiguration()
configuration = schema_configuration.SchemaConfiguration(
disabled_json_schema_keywords={'format'}
)

def test_string_is_invalid_fails(self):
# string is invalid
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@

class TestAllofWithTheLastEmptySchema(unittest.TestCase):
"""AllofWithTheLastEmptySchema unit test stubs"""
configuration = schema_configuration.SchemaConfiguration()
configuration = schema_configuration.SchemaConfiguration(
disabled_json_schema_keywords={'format'}
)

def test_string_is_invalid_fails(self):
# string is invalid
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@

class TestAllofWithTwoEmptySchemas(unittest.TestCase):
"""AllofWithTwoEmptySchemas unit test stubs"""
configuration = schema_configuration.SchemaConfiguration()
configuration = schema_configuration.SchemaConfiguration(
disabled_json_schema_keywords={'format'}
)

def test_any_data_is_valid_passes(self):
# any data is valid
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@

class TestAnyof(unittest.TestCase):
"""Anyof unit test stubs"""
configuration = schema_configuration.SchemaConfiguration()
configuration = schema_configuration.SchemaConfiguration(
disabled_json_schema_keywords={'format'}
)

def test_second_anyof_valid_passes(self):
# second anyOf valid
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@

class TestAnyofComplexTypes(unittest.TestCase):
"""AnyofComplexTypes unit test stubs"""
configuration = schema_configuration.SchemaConfiguration()
configuration = schema_configuration.SchemaConfiguration(
disabled_json_schema_keywords={'format'}
)

def test_second_anyof_valid_complex_passes(self):
# second anyOf valid (complex)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@

class TestAnyofWithBaseSchema(unittest.TestCase):
"""AnyofWithBaseSchema unit test stubs"""
configuration = schema_configuration.SchemaConfiguration()
configuration = schema_configuration.SchemaConfiguration(
disabled_json_schema_keywords={'format'}
)

def test_one_anyof_valid_passes(self):
# one anyOf valid
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@

class TestAnyofWithOneEmptySchema(unittest.TestCase):
"""AnyofWithOneEmptySchema unit test stubs"""
configuration = schema_configuration.SchemaConfiguration()
configuration = schema_configuration.SchemaConfiguration(
disabled_json_schema_keywords={'format'}
)

def test_string_is_valid_passes(self):
# string is valid
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@

class TestArrayTypeMatchesArrays(unittest.TestCase):
"""ArrayTypeMatchesArrays unit test stubs"""
configuration = schema_configuration.SchemaConfiguration()
configuration = schema_configuration.SchemaConfiguration(
disabled_json_schema_keywords={'format'}
)

def test_a_float_is_not_an_array_fails(self):
# a float is not an array
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@

class TestBooleanTypeMatchesBooleans(unittest.TestCase):
"""BooleanTypeMatchesBooleans unit test stubs"""
configuration = schema_configuration.SchemaConfiguration()
configuration = schema_configuration.SchemaConfiguration(
disabled_json_schema_keywords={'format'}
)

def test_an_empty_string_is_not_a_boolean_fails(self):
# an empty string is not a boolean
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@

class TestByInt(unittest.TestCase):
"""ByInt unit test stubs"""
configuration = schema_configuration.SchemaConfiguration()
configuration = schema_configuration.SchemaConfiguration(
disabled_json_schema_keywords={'format'}
)

def test_int_by_int_fail_fails(self):
# int by int fail
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@

class TestByNumber(unittest.TestCase):
"""ByNumber unit test stubs"""
configuration = schema_configuration.SchemaConfiguration()
configuration = schema_configuration.SchemaConfiguration(
disabled_json_schema_keywords={'format'}
)

def test_45_is_multiple_of15_passes(self):
# 4.5 is multiple of 1.5
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@

class TestBySmallNumber(unittest.TestCase):
"""BySmallNumber unit test stubs"""
configuration = schema_configuration.SchemaConfiguration()
configuration = schema_configuration.SchemaConfiguration(
disabled_json_schema_keywords={'format'}
)

def test_000751_is_not_multiple_of00001_fails(self):
# 0.00751 is not multiple of 0.0001
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@

class TestDateTimeFormat(unittest.TestCase):
"""DateTimeFormat unit test stubs"""
configuration = schema_configuration.SchemaConfiguration()
configuration = schema_configuration.SchemaConfiguration(
disabled_json_schema_keywords={'format'}
)

def test_all_string_formats_ignore_objects_passes(self):
# all string formats ignore objects
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@

class TestEmailFormat(unittest.TestCase):
"""EmailFormat unit test stubs"""
configuration = schema_configuration.SchemaConfiguration()
configuration = schema_configuration.SchemaConfiguration(
disabled_json_schema_keywords={'format'}
)

def test_all_string_formats_ignore_objects_passes(self):
# all string formats ignore objects
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@

class TestEnumWith0DoesNotMatchFalse(unittest.TestCase):
"""EnumWith0DoesNotMatchFalse unit test stubs"""
configuration = schema_configuration.SchemaConfiguration()
configuration = schema_configuration.SchemaConfiguration(
disabled_json_schema_keywords={'format'}
)

def test_integer_zero_is_valid_passes(self):
# integer zero is valid
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@

class TestEnumWith1DoesNotMatchTrue(unittest.TestCase):
"""EnumWith1DoesNotMatchTrue unit test stubs"""
configuration = schema_configuration.SchemaConfiguration()
configuration = schema_configuration.SchemaConfiguration(
disabled_json_schema_keywords={'format'}
)

def test_true_is_invalid_fails(self):
# true is invalid
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@

class TestEnumWithEscapedCharacters(unittest.TestCase):
"""EnumWithEscapedCharacters unit test stubs"""
configuration = schema_configuration.SchemaConfiguration()
configuration = schema_configuration.SchemaConfiguration(
disabled_json_schema_keywords={'format'}
)

def test_member2_is_valid_passes(self):
# member 2 is valid
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@

class TestEnumWithFalseDoesNotMatch0(unittest.TestCase):
"""EnumWithFalseDoesNotMatch0 unit test stubs"""
configuration = schema_configuration.SchemaConfiguration()
configuration = schema_configuration.SchemaConfiguration(
disabled_json_schema_keywords={'format'}
)

def test_false_is_valid_passes(self):
# false is valid
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@

class TestEnumWithTrueDoesNotMatch1(unittest.TestCase):
"""EnumWithTrueDoesNotMatch1 unit test stubs"""
configuration = schema_configuration.SchemaConfiguration()
configuration = schema_configuration.SchemaConfiguration(
disabled_json_schema_keywords={'format'}
)

def test_float_one_is_invalid_fails(self):
# float one is invalid
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@

class TestEnumsInProperties(unittest.TestCase):
"""EnumsInProperties unit test stubs"""
configuration = schema_configuration.SchemaConfiguration()
configuration = schema_configuration.SchemaConfiguration(
disabled_json_schema_keywords={'format'}
)

def test_missing_optional_property_is_valid_passes(self):
# missing optional property is valid
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@

class TestForbiddenProperty(unittest.TestCase):
"""ForbiddenProperty unit test stubs"""
configuration = schema_configuration.SchemaConfiguration()
configuration = schema_configuration.SchemaConfiguration(
disabled_json_schema_keywords={'format'}
)

def test_property_present_fails(self):
# property present
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@

class TestHostnameFormat(unittest.TestCase):
"""HostnameFormat unit test stubs"""
configuration = schema_configuration.SchemaConfiguration()
configuration = schema_configuration.SchemaConfiguration(
disabled_json_schema_keywords={'format'}
)

def test_all_string_formats_ignore_objects_passes(self):
# all string formats ignore objects
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@

class TestIntegerTypeMatchesIntegers(unittest.TestCase):
"""IntegerTypeMatchesIntegers unit test stubs"""
configuration = schema_configuration.SchemaConfiguration()
configuration = schema_configuration.SchemaConfiguration(
disabled_json_schema_keywords={'format'}
)

def test_an_object_is_not_an_integer_fails(self):
# an object is not an integer
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@

class TestInvalidInstanceShouldNotRaiseErrorWhenFloatDivisionInf(unittest.TestCase):
"""InvalidInstanceShouldNotRaiseErrorWhenFloatDivisionInf unit test stubs"""
configuration = schema_configuration.SchemaConfiguration()
configuration = schema_configuration.SchemaConfiguration(
disabled_json_schema_keywords={'format'}
)

def test_always_invalid_but_naive_implementations_may_raise_an_overflow_error_fails(self):
# always invalid, but naive implementations may raise an overflow error
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@

class TestInvalidStringValueForDefault(unittest.TestCase):
"""InvalidStringValueForDefault unit test stubs"""
configuration = schema_configuration.SchemaConfiguration()
configuration = schema_configuration.SchemaConfiguration(
disabled_json_schema_keywords={'format'}
)

def test_valid_when_property_is_specified_passes(self):
# valid when property is specified
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@

class TestIpv4Format(unittest.TestCase):
"""Ipv4Format unit test stubs"""
configuration = schema_configuration.SchemaConfiguration()
configuration = schema_configuration.SchemaConfiguration(
disabled_json_schema_keywords={'format'}
)

def test_all_string_formats_ignore_objects_passes(self):
# all string formats ignore objects
Expand Down
Loading