Skip to content

Commit

Permalink
Apply black formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
pkalita-lbl committed Dec 16, 2024
1 parent 0f0c452 commit 406a378
Showing 1 changed file with 10 additions and 14 deletions.
24 changes: 10 additions & 14 deletions tests/test_schema_mapper/test_schema_mapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -348,9 +348,9 @@ def test_overrides_in_class_derivation(mapper):
overrides={
"description": "Like Person, but not in a subset",
"in_subset": None,
}
},
)
}
},
)
target_schema = mapper.derive_schema(specification)
agent = target_schema.classes["Agent"]
Expand All @@ -373,11 +373,11 @@ def test_overrides_in_slot_derivation(mapper):
"required": True,
"maximum_value": 120,
"description": "Age in years, but required and more realistic",
}
},
)
}
},
)
}
},
)
target_schema = mapper.derive_schema(specification)
agent = target_schema.classes["Agent"]
Expand All @@ -396,11 +396,9 @@ def test_overrides_errors_with_unknown_attribute(mapper):
"Agent": ClassDerivation(
name="Agent",
populated_from="Person",
overrides={
"unknown_attribute": "This should raise an error"
}
overrides={"unknown_attribute": "This should raise an error"},
)
}
},
)
with pytest.raises(ValueError):
mapper.derive_schema(specification)
Expand All @@ -414,13 +412,11 @@ def test_overrides_errors_with_unknown_attribute(mapper):
slot_derivations={
"age_in_years": SlotDerivation(
name="age_in_years",
overrides={
"unknown_attribute": "This should raise an error"
}
overrides={"unknown_attribute": "This should raise an error"},
)
}
},
)
}
},
)
with pytest.raises(ValueError):
mapper.derive_schema(specification)

0 comments on commit 406a378

Please sign in to comment.