Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion azureml_inference_server_http/server/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ class AMLInferenceServerConfig(BaseSettings):
debug_port: Optional[int] = pydantic.Field(default=None, alias="AZUREML_DEBUG_PORT")

# Check if extra keys are there in the config file
@pydantic.root_validator(pre=True)
@pydantic.model_validator(mode="before")
def check_extra_keys(cls, values: Dict[str, Any]):
supported_keys = alias_mapping.values()
extra_keys = []
Expand Down
4 changes: 2 additions & 2 deletions tests/server/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,11 @@ def app_appinsights(config):

@pytest.fixture()
def config():
backup_config = server_config.copy()
backup_config = server_config.model_copy()
try:
yield server_config
finally:
for field in server_config.__fields__:
for field in server_config.model_fields:
setattr(server_config, field, getattr(backup_config, field))


Expand Down
Loading