tests: update test_bulk_download.py after addition of archived field

This commit is contained in:
psychedelicious 2024-06-28 09:59:54 +10:00
parent 0d4b80780b
commit 6dfc406c52

View File

@ -126,7 +126,7 @@ def test_generate_id_with_board_id(monkeypatch: Any, mock_invoker: Invoker):
bulk_download_service.start(mock_invoker)
def mock_board_get(*args, **kwargs):
return BoardRecord(board_id="12345", board_name="test_board_name", created_at="None", updated_at="None")
return BoardRecord(board_id="12345", board_name="test_board_name", created_at="None", updated_at="None", archived=False)
monkeypatch.setattr(mock_invoker.services.board_records, "get", mock_board_get)
@ -153,7 +153,7 @@ def test_handler_board_id(tmp_path: Path, monkeypatch: Any, mock_image_dto: Imag
)
def mock_board_get(*args, **kwargs):
return BoardRecord(board_id="12345", board_name="test_board_name", created_at="None", updated_at="None")
return BoardRecord(board_id="12345", board_name="test_board_name", created_at="None", updated_at="None", archived=False)
monkeypatch.setattr(mock_invoker.services.board_records, "get", mock_board_get)