Skip to content

Commit cb003d8

Browse files
Merge branch 'develop' of https://github.com/hotosm/portal into develop
2 parents 4ca78eb + 1630a7e commit cb003d8

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

backend/app/tests/test_main_scheduler.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import asyncio
44
from contextlib import asynccontextmanager
5-
from unittest.mock import AsyncMock
5+
from unittest.mock import AsyncMock, MagicMock
66

77
import pytest
88

@@ -67,6 +67,8 @@ async def _fake_lifespan_context():
6767

6868
monkeypatch.setattr("app.main.preload_cache", _fake_preload_cache)
6969
monkeypatch.setattr("app.main.homepage_map_sync_loop", _waiting_loop)
70+
monkeypatch.setattr("app.main.AuthConfig.from_env", lambda: MagicMock())
71+
monkeypatch.setattr("app.main.init_auth", lambda x: None)
7072

7173
async with lifespan(fastapi_app):
7274
task = getattr(fastapi_app.state, "homepage_map_sync_task", None)

frontend/src/portal-imagery/hooks/__tests__/hooks.5xx.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
import React from "react";
1313
import { QueryClient, QueryClientProvider } from "@tanstack/react-query";
1414
import { renderHook, waitFor } from "@testing-library/react";
15-
import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";
15+
import { afterEach, describe, expect, it, vi } from "vitest";
1616
import { useOAMImagery } from "../useOAMImagery";
1717
import { useDroneProjects } from "../useDroneProjects";
1818

0 commit comments

Comments
 (0)