diff --git a/python_template_server/models.py b/python_template_server/models.py index dbc4132..65b9da5 100644 --- a/python_template_server/models.py +++ b/python_template_server/models.py @@ -96,7 +96,6 @@ class TemplateServerConfig(BaseModel): rate_limit: RateLimitConfigModel = Field(default_factory=RateLimitConfigModel) certificate: CertificateConfigModel = Field(default_factory=CertificateConfigModel) json_response: JSONResponseConfigModel = Field(default_factory=JSONResponseConfigModel) - db: DatabaseConfig = Field(default_factory=DatabaseConfig, description="Database configuration") def save_to_file(self, filepath: Path) -> None: """Save the configuration to a JSON file. diff --git a/tests/conftest.py b/tests/conftest.py index 34e8d63..28eac96 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -178,7 +178,6 @@ def mock_template_server_config( mock_rate_limit_config: RateLimitConfigModel, mock_certificate_config: CertificateConfigModel, mock_json_response_config: JSONResponseConfigModel, - mock_db_config: DatabaseConfig, ) -> TemplateServerConfig: """Provide a mock TemplateServerConfig instance.""" return TemplateServerConfig( @@ -187,5 +186,4 @@ def mock_template_server_config( rate_limit=mock_rate_limit_config, certificate=mock_certificate_config, json_response=mock_json_response_config, - db=mock_db_config, ) diff --git a/tests/test_models.py b/tests/test_models.py index 2775487..20aaf67 100644 --- a/tests/test_models.py +++ b/tests/test_models.py @@ -109,7 +109,6 @@ def test_model_dump( mock_rate_limit_config_dict: dict, mock_certificate_config_dict: dict, mock_json_response_config_dict: dict, - mock_db_config_dict: dict, ) -> None: """Test the model_dump method.""" expected_dict = { @@ -118,7 +117,6 @@ def test_model_dump( "rate_limit": mock_rate_limit_config_dict, "certificate": mock_certificate_config_dict, "json_response": mock_json_response_config_dict, - "db": mock_db_config_dict, } assert mock_template_server_config.model_dump() == expected_dict