diff --git a/unit_tests/mocks/repos/config_repo.py b/unit_tests/mocks/repos/config_repo.py index d7226764..f59a51ee 100644 --- a/unit_tests/mocks/repos/config_repo.py +++ b/unit_tests/mocks/repos/config_repo.py @@ -3,7 +3,7 @@ from sqlalchemy import exc -from app.model.config import ConfigReadDTO +from app.model.config import ConfigReadDTO, DocumentConfig, EventConfig def mock_config_repo(config_repo, monkeypatch: MonkeyPatch, mocker): @@ -16,7 +16,13 @@ def maybe_throw(): def mock_get(_) -> Optional[ConfigReadDTO]: maybe_throw() - return ConfigReadDTO(geographies=[], taxonomies={}, languages={}) + return ConfigReadDTO( + geographies=[], + taxonomies={}, + languages={}, + document=DocumentConfig(roles=[], types=[], variants=[]), + event=EventConfig(types=[]), + ) monkeypatch.setattr(config_repo, "get", mock_get) mocker.spy(config_repo, "get")