Skip to content

Commit 61cd2aa

Browse files
committed
fix err msg
1 parent e357d96 commit 61cd2aa

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/ga4gh/core/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ class MappableConcept(Element, BaseModelForbidExtra):
217217
def require_name_or_primary_coding(cls, v): # noqa: ANN001 N805 ANN201
218218
"""Ensure that ``name`` or ``primaryCoding`` is provided"""
219219
if v.primaryCoding is None and v.name is None:
220-
err_msg = "`One of name` or `primaryCoding` must be provided."
220+
err_msg = "One of `name` or `primaryCoding` must be provided."
221221
raise ValueError(err_msg)
222222
return v
223223

tests/validation/test_models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ def test_mappable_concept():
153153
"""Test the MappableConcept model validator"""
154154
# Does not provide required fields
155155
with pytest.raises(
156-
ValueError, match="`One of name` or `primaryCoding` must be provided."
156+
ValueError, match="One of `name` or `primaryCoding` must be provided."
157157
):
158158
core_models.MappableConcept(conceptType="test")
159159

0 commit comments

Comments
 (0)