7a0da7932b
OSV-Scanner (Scheduled) / scan-scheduled (push) Failing after 0s
Create Release / test-gate (push) Has been cancelled
Create Release / release-gate (push) Has been cancelled
Create Release / ci-gate (push) Has been cancelled
Create Release / version-check (push) Has been cancelled
Create Release / e2e-test-gate (push) Has been cancelled
Create Release / responsive-test-gate (push) Has been cancelled
Create Release / compat-test-gate (push) Has been cancelled
Create Release / compose-integration-gate (push) Has been cancelled
Create Release / vulture-gate (push) Has been cancelled
Create Release / build (push) Has been cancelled
Create Release / provenance (push) Has been cancelled
Create Release / prerelease-docker (push) Has been cancelled
Create Release / publish-docker (push) Has been cancelled
Create Release / create-release (push) Has been cancelled
Create Release / cleanup-changelog (push) Has been cancelled
Create Release / trigger-pypi (push) Has been cancelled
Create Release / monitor-pypi (push) Has been cancelled
Create Release / Clean up orphan prerelease tags and signatures (push) Has been cancelled
Docker Tests (Consolidated) / UI Tests (Puppeteer) [research-form] (push) Has been cancelled
Docker Tests (Consolidated) / UI Tests (Puppeteer) [research-metrics] (push) Has been cancelled
Docker Tests (Consolidated) / UI Tests (Puppeteer) [research-workflow] (push) Has been cancelled
Docker Tests (Consolidated) / UI Tests (Puppeteer) [settings-core] (push) Has been cancelled
CodeQL Advanced / Analyze (javascript-typescript) (push) Has been cancelled
Docker Tests (Consolidated) / UI Tests (Puppeteer) [history-news] (push) Has been cancelled
Docker Tests (Consolidated) / UI Tests (Puppeteer) [library] (push) Has been cancelled
Docker Tests (Consolidated) / UI Tests (Puppeteer) [link-analytics] (push) Has been cancelled
Docker Tests (Consolidated) / UI Tests (Puppeteer) [chat-core] (push) Has been cancelled
Docker Tests (Consolidated) / UI Tests (Puppeteer) [chat-lifecycle] (push) Has been cancelled
Docker Tests (Consolidated) / UI Tests (Puppeteer) [error-benchmark] (push) Has been cancelled
Docker Tests (Consolidated) / UI Tests (Puppeteer) [settings-pages] (push) Has been cancelled
Docker Tests (Consolidated) / UI Tests (Puppeteer) (push) Has been cancelled
Docker Tests (Consolidated) / Accessibility Tests (push) Has been cancelled
Docker Tests (Consolidated) / LLM Unit Tests (push) Has been cancelled
Docker Tests (Consolidated) / LLM Example Tests (push) Has been cancelled
Docker Tests (Consolidated) / Production Image Smoke Test (push) Has been cancelled
Docker Tests (Consolidated) / Infrastructure Tests (push) Has been cancelled
OSSF Scorecard / OSSF Security Scorecard Analysis (push) Has been cancelled
Docker Tests (Consolidated) / UI Tests (Puppeteer) [mobile] (push) Has been cancelled
Backwards Compatibility / Verify Encryption Constants (push) Has been cancelled
Backwards Compatibility / PyPI Version Compatibility (push) Has been cancelled
Backwards Compatibility / Database Migration Tests (push) Has been cancelled
CodeQL Advanced / Analyze (python) (push) Has been cancelled
Docker Tests (Consolidated) / detect-changes (push) Has been cancelled
Docker Tests (Consolidated) / Build Test Image (push) Has been cancelled
Docker Tests (Consolidated) / All Pytest Tests + Coverage (push) Has been cancelled
Docker Tests (Consolidated) / UI Tests (Puppeteer) [accessibility] (push) Has been cancelled
Docker Tests (Consolidated) / UI Tests (Puppeteer) [api-crud] (push) Has been cancelled
Docker Tests (Consolidated) / UI Tests (Puppeteer) [auth-login] (push) Has been cancelled
Docker Tests (Consolidated) / UI Tests (Puppeteer) [auth-pages] (push) Has been cancelled
Docker Tests (Consolidated) / UI Tests (Puppeteer) [auth-register] (push) Has been cancelled
93 lines
2.9 KiB
Python
93 lines
2.9 KiB
Python
"""Quick-win tests for re-export / compat modules at 0% coverage.
|
|
|
|
These modules just re-export symbols from subpackages. Importing them
|
|
and verifying the expected attributes exist is enough to cover them.
|
|
"""
|
|
|
|
|
|
class TestBenchmarkDatasets:
|
|
"""benchmarks/datasets.py — re-exports load_dataset etc."""
|
|
|
|
def test_imports(self):
|
|
from local_deep_research.benchmarks import datasets
|
|
|
|
assert hasattr(datasets, "load_dataset")
|
|
assert hasattr(datasets, "get_available_datasets")
|
|
assert hasattr(datasets, "DEFAULT_DATASET_URLS")
|
|
|
|
def test_callable(self):
|
|
from local_deep_research.benchmarks.datasets import load_dataset
|
|
|
|
assert callable(load_dataset)
|
|
|
|
|
|
class TestBenchmarkMetrics:
|
|
"""benchmarks/metrics.py — re-exports calculate_metrics, generate_report."""
|
|
|
|
def test_imports(self):
|
|
from local_deep_research.benchmarks import metrics
|
|
|
|
assert hasattr(metrics, "calculate_metrics")
|
|
assert hasattr(metrics, "generate_report")
|
|
|
|
def test_callable(self):
|
|
from local_deep_research.benchmarks.metrics import (
|
|
calculate_metrics,
|
|
generate_report,
|
|
)
|
|
|
|
assert callable(calculate_metrics)
|
|
assert callable(generate_report)
|
|
|
|
|
|
class TestBenchmarkModels:
|
|
"""benchmarks/models/__init__.py — re-exports ORM models."""
|
|
|
|
def test_imports(self):
|
|
from local_deep_research.benchmarks import models
|
|
|
|
assert hasattr(models, "BenchmarkRun")
|
|
assert hasattr(models, "BenchmarkResult")
|
|
assert hasattr(models, "BenchmarkConfig")
|
|
assert hasattr(models, "BenchmarkProgress")
|
|
assert hasattr(models, "BenchmarkStatus")
|
|
assert hasattr(models, "DatasetType")
|
|
|
|
|
|
class TestRepositories:
|
|
"""advanced_search_system/repositories/__init__.py — re-exports FindingsRepository."""
|
|
|
|
def test_imports(self):
|
|
from local_deep_research.advanced_search_system import repositories
|
|
|
|
assert hasattr(repositories, "FindingsRepository")
|
|
|
|
|
|
class TestSetupUtils:
|
|
"""utilities/setup_utils.py — wrapper calling init_config_files."""
|
|
|
|
def test_module_importable(self):
|
|
from local_deep_research.utilities import setup_utils
|
|
|
|
assert hasattr(setup_utils, "setup_user_directories")
|
|
assert callable(setup_utils.setup_user_directories)
|
|
|
|
def test_setup_calls_init_config_files(self, monkeypatch):
|
|
"""Mock the lazy import to verify setup_user_directories calls it."""
|
|
import sys
|
|
from unittest.mock import MagicMock
|
|
|
|
# Create a fake config.config_files module
|
|
fake_module = MagicMock()
|
|
monkeypatch.setitem(
|
|
sys.modules,
|
|
"local_deep_research.config.config_files",
|
|
fake_module,
|
|
)
|
|
from local_deep_research.utilities.setup_utils import (
|
|
setup_user_directories,
|
|
)
|
|
|
|
setup_user_directories()
|
|
fake_module.init_config_files.assert_called_once()
|