diff --git a/pyproject.toml b/pyproject.toml index 7e282500..6840a19a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -281,7 +281,6 @@ ignore = [ "SIM114", # Combine `if` branches using logical `or` operator "SIM117", # Use a single `with` statement with multiple contexts instead of nested `with` statements "SIM118", # Use `key in dict` instead of `key in dict.keys) - "SIM300", # Yoda condition detected "SIM910", # Use `data.get(key)` instead of `data.get(key, None)` "UP007", # Use X | Y for type annotations "UP031", # Use format specifiers instead of percent format diff --git a/tests/unit/sdk/test_schema.py b/tests/unit/sdk/test_schema.py index 2a39fdb2..dd571137 100644 --- a/tests/unit/sdk/test_schema.py +++ b/tests/unit/sdk/test_schema.py @@ -77,7 +77,7 @@ async def test_schema_data_validation(rfile_schema, client_type): schema=rfile_schema, data={"name": "some-name", "invalid_field": "yes"} ) - assert "invalid_field is not a valid value for CoreTransformJinja2" == excinfo.value.message + assert excinfo.value.message == "invalid_field is not a valid value for CoreTransformJinja2" @pytest.mark.parametrize("client_type", client_types)