Skip to content

Fix typos #287

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 10, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions tests/unit/unmarshalling/test_validate.py
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,7 @@ def test_object_multiple_one_of(self, value, validator_factory):
validator_factory(schema).validate(value)

@pytest.mark.parametrize('value', [{}, ])
def test_object_defferent_type_one_of(self, value, validator_factory):
def test_object_different_type_one_of(self, value, validator_factory):
one_of = [
Schema('integer'), Schema('string'),
]
Expand Down Expand Up @@ -620,23 +620,23 @@ def test_object_max_properties(self, value, validator_factory):
assert result is None

@pytest.mark.parametrize('value', [{'additional': 1}, ])
def test_object_additional_propetries(self, value, validator_factory):
def test_object_additional_properties(self, value, validator_factory):
schema = Schema('object')

result = validator_factory(schema).validate(value)

assert result is None

@pytest.mark.parametrize('value', [{'additional': 1}, ])
def test_object_additional_propetries_false(
def test_object_additional_properties_false(
self, value, validator_factory):
schema = Schema('object', additional_properties=False)

with pytest.raises(InvalidSchemaValue):
validator_factory(schema).validate(value)

@pytest.mark.parametrize('value', [{'additional': 1}, ])
def test_object_additional_propetries_object(
def test_object_additional_properties_object(
self, value, validator_factory):
additional_properties = Schema('integer')
schema = Schema('object', additional_properties=additional_properties)
Expand Down