diff --git a/horde_sdk/generic_api/apimodels.py b/horde_sdk/generic_api/apimodels.py index 9aea272..9884683 100644 --- a/horde_sdk/generic_api/apimodels.py +++ b/horde_sdk/generic_api/apimodels.py @@ -40,9 +40,17 @@ def get_api_model_name(cls) -> str | None: If none, there is no payload, such as for a GET request. """ - model_config = ConfigDict( - frozen=True, - use_attribute_docstrings=True, + model_config = ( + ConfigDict( + frozen=True, + use_attribute_docstrings=True, + extra="allow", + ) + if not os.getenv("TESTS_ONGOING") + else ConfigDict( + frozen=True, + use_attribute_docstrings=True, + ) )