We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8ae8965 commit 131caf8Copy full SHA for 131caf8
webapp/tests/pages_/test_overview.py
@@ -5,7 +5,19 @@
5
from unittest.mock import MagicMock, patch
6
7
import pandas as pd
8
-from streamlit.testing.v1 import AppTest
+
9
+import shared.yamlsettings
10
11
12
+def mock_get_path(path_key: str) -> Path:
13
+ """Mock get_path to return dummy paths for testing."""
14
+ del path_key # Unused parameter
15
+ return Path("/some/path")
16
17
18
+shared.yamlsettings.get_path = mock_get_path # type: ignore[invalid-assignment]
19
20
+from streamlit.testing.v1 import AppTest # noqa: E402]
21
22
PAGES_FOLDER = Path(__file__).parent / Path("../../pages_")
23
0 commit comments