Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions tests/aignostics/bucket/gui_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import string
from asyncio import sleep
from pathlib import Path
from unittest.mock import patch

import psutil
import pytest
Expand All @@ -18,8 +19,10 @@
@pytest.mark.integration
async def test_gui_bucket_shows(user: User) -> None:
"""Test that the user sees the dataset page."""
await user.open("/bucket")
await user.should_see("The bucket is securely hosted on Google Cloud in EU")
# Service.find_static can be slow and lead to test timeouts; we patch it to return an empty list.
with patch("aignostics.bucket._gui.Service.find_static", return_value=[]):
await user.open("/bucket")
await user.should_see("The bucket is securely hosted on Google Cloud in EU")


@pytest.mark.e2e
Expand Down
Loading