added cli

This commit is contained in:
2026-01-20 20:47:28 +05:30
parent 7c027834c0
commit 8b2d6a5046
13 changed files with 390 additions and 0 deletions

18
tests/conftest.py Normal file
View File

@@ -0,0 +1,18 @@
import sys
from pathlib import Path
import pytest
@pytest.fixture
def temp_package(tmp_path: Path):
"""
Creates a temporary Python package and adds it to sys.path.
"""
pkg = tmp_path / "testpkg"
pkg.mkdir()
(pkg / "__init__.py").write_text('"""Test package."""\n')
sys.path.insert(0, str(tmp_path))
yield pkg
sys.path.remove(str(tmp_path))