Skip to content

Commit

Permalink
Cover one more line
Browse files Browse the repository at this point in the history
  • Loading branch information
wblxyxolbkhv committed May 19, 2021
1 parent 7ec388f commit 2bceb2e
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/test_validators.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,3 +69,14 @@ def test_deconstruct():
restored_validator = klass(*args, **kwargs)

assert restored_validator == validator


def test_equality_other_object():
schema = {
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"properties": {"id": {"type": "number"}, "name": {"type": "string"}},
"required": ["id", "name"],
}
validator = JSONFieldSchemaValidator(schema)
assert validator != object()

0 comments on commit 2bceb2e

Please sign in to comment.