From 5dcbe8f0e5da9cc66e9ab78fc120f5f190e6e554 Mon Sep 17 00:00:00 2001 From: Joshua Kifer Date: Sat, 24 Jul 2021 11:48:11 -0700 Subject: [PATCH] Change comparisons to use 'is' --- .../test_inheritance_concrete.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_inheritance_and_pydantic_generation/test_inheritance_concrete.py b/tests/test_inheritance_and_pydantic_generation/test_inheritance_concrete.py index c655cf8..488fdef 100644 --- a/tests/test_inheritance_and_pydantic_generation/test_inheritance_concrete.py +++ b/tests/test_inheritance_and_pydantic_generation/test_inheritance_concrete.py @@ -505,9 +505,9 @@ async def test_inheritance_with_multi_relation(): def test_custom_config(): # Custom config inherits defaults - assert getattr(ImmutablePerson.__config__, "orm_mode") == True + assert getattr(ImmutablePerson.__config__, "orm_mode") is True # Custom config can override defaults - assert getattr(ImmutablePerson.__config__, "validate_assignment") == False + assert getattr(ImmutablePerson.__config__, "validate_assignment") is False sam = ImmutablePerson(name="Sam") with pytest.raises(TypeError): sam.name = "Not Sam"