Spaces:
Sleeping
Sleeping
File size: 612 Bytes
6e35819 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
import pytest
from data_access import get_unified_sources
@pytest.mark.asyncio
async def test_get_unified_sources():
results, stats = await get_unified_sources(2, 2, 1, 1)
assert results is not None
assert stats is not None
# Check number of rows in results list
assert len(results) > 4, "Results should contain at least one row"
# Check number of rows in stats DataFrame
assert stats.shape[0] > 0, "Stats DataFrame should contain at least one row"
# You can also check specific stats columns
assert "overlap_count" in stats.columns, "Stats should contain overlap_count" |