File size: 1,383 Bytes
553fbf7
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
"""
MINDI 1.5 Vision-Coder — Smoke Test

Basic tests to verify the project structure and imports work correctly.
"""

from __future__ import annotations

from pathlib import Path


def test_project_structure_exists() -> None:
    """Verify all critical directories exist."""
    root = Path(__file__).resolve().parent.parent
    required = [
        "configs", "src", "api", "scripts", "tests",
        "data", "checkpoints", "logs", "docs",
    ]
    for d in required:
        assert (root / d).exists(), f"Missing directory: {d}"


def test_config_files_exist() -> None:
    """Verify config YAML files are present."""
    root = Path(__file__).resolve().parent.parent
    configs = [
        "configs/model_config.yaml",
        "configs/training_config.yaml",
        "configs/data_config.yaml",
        "configs/search_config.yaml",
    ]
    for c in configs:
        assert (root / c).exists(), f"Missing config: {c}"


def test_src_packages_importable() -> None:
    """Verify src __init__.py files exist (importability test)."""
    root = Path(__file__).resolve().parent.parent
    packages = [
        "src", "src/model", "src/agents", "src/search",
        "src/sandbox", "src/training", "src/inference", "src/evaluation",
    ]
    for pkg in packages:
        init_file = root / pkg / "__init__.py"
        assert init_file.exists(), f"Missing __init__.py in {pkg}"