Files
ai-code-audit-cli/tests/conftest.py
7000pctAUTO 14b07d08d6
Some checks failed
CI / test (3.10) (push) Has been cancelled
CI / test (3.11) (push) Has been cancelled
CI / test (3.12) (push) Has been cancelled
CI / test (3.9) (push) Has been cancelled
CI / build (push) Has been cancelled
CI / release (push) Has been cancelled
fix: resolve CI import and type mismatch issues
2026-02-03 10:39:13 +00:00

28 lines
499 B
Python

"""Pytest configuration and fixtures."""
import pytest
import tempfile
from pathlib import Path
@pytest.fixture
def test_files(tmp_path):
"""Create temporary test files."""
test_dir = tmp_path / "test_project"
test_dir.mkdir()
(test_dir / "test.py").write_text("""
def hello():
# TODO: implement
print("Hello, World!")
""")
(test_dir / "test.js").write_text("""
function hello() {
// FIXME: fix this
console.log("Hello, World!");
}
""")
return test_dir