diff --git a/src/aipass/backup/.aipass/aipass_local_prompt.md b/src/aipass/backup/.aipass/aipass_local_prompt.md new file mode 100644 index 00000000..e7acf95b --- /dev/null +++ b/src/aipass/backup/.aipass/aipass_local_prompt.md @@ -0,0 +1,14 @@ +# BACKUP Branch-Local Context + + +> Auto-created by aipass init. Customize for your branch. + +## Status: NEEDS CONFIGURATION + +This file is injected into every AI conversation when working from this branch directory. Configure it with: + +- Who this branch is (role, purpose) +- Key commands and workflows +- Architecture overview +- Critical files and operational rules +- Integration points with other branches diff --git a/src/aipass/backup/.gitignore b/src/aipass/backup/.gitignore new file mode 100644 index 00000000..9cf1dfc4 --- /dev/null +++ b/src/aipass/backup/.gitignore @@ -0,0 +1,14 @@ +__pycache__/ +*.pyc +*.pyo +.env +*.egg-info/ +.coverage +htmlcov/ +.pytest_cache/ +.mypy_cache/ +dist/ +build/ +*.log +*.tmp +*.swp diff --git a/src/aipass/backup/docs/.gitkeep b/src/aipass/backup/docs/.gitkeep new file mode 100644 index 00000000..e69de29b diff --git a/src/aipass/backup/pytest.ini b/src/aipass/backup/pytest.ini new file mode 100644 index 00000000..c3f21db6 --- /dev/null +++ b/src/aipass/backup/pytest.ini @@ -0,0 +1,21 @@ +[pytest] +# Test discovery paths +testpaths = tests + +# Test file patterns +python_files = test_*.py +python_functions = test_* +python_classes = Test* + +# Command-line options (always applied) +addopts = + -v # Verbose output + --tb=short # Short traceback format + --strict-markers # Raise error on unknown markers + -ra # Show summary of all test outcomes + +# Test markers (for categorizing tests) +markers = + unit: Unit tests + integration: Integration tests + slow: Tests that take significant time diff --git a/src/aipass/backup/tests/conftest.py b/src/aipass/backup/tests/conftest.py new file mode 100644 index 00000000..3cccc54b --- /dev/null +++ b/src/aipass/backup/tests/conftest.py @@ -0,0 +1,42 @@ + +# ===================AIPASS==================== +# META DATA HEADER +# Name: tests/conftest.py +# Date: 2025-11-08 +# Version: 1.0.0 +# Category: cortex/tests +# +# CHANGELOG (Max 5 entries): +# - v1.0.0 (2025-11-08): Initial implementation - Shared pytest fixtures +# +# CODE STANDARDS: +# - Error handling: Use error handler system (apps/handlers/error/) +# ============================================= + +"""Shared pytest fixtures for cortex tests""" +import pytest +import shutil +import tempfile +from pathlib import Path +from typing import Generator + + +@pytest.fixture +def temp_test_dir() -> Generator[Path, None, None]: + """Creates temporary directory for testing, cleans up after""" + test_dir = Path(tempfile.mkdtemp()) + yield test_dir + if test_dir.exists(): + shutil.rmtree(test_dir) + + +@pytest.fixture +def sample_test_data() -> dict: + """Provides sample test data + + Customize this fixture for your module's needs + """ + return { + "test_key": "test_value", + "sample_data": "example" + } diff --git a/src/aipass/daemon/.aipass/aipass_local_prompt.md b/src/aipass/daemon/.aipass/aipass_local_prompt.md new file mode 100644 index 00000000..a6aa1c72 --- /dev/null +++ b/src/aipass/daemon/.aipass/aipass_local_prompt.md @@ -0,0 +1,14 @@ +# DAEMON Branch-Local Context + + +> Auto-created by aipass init. Customize for your branch. + +## Status: NEEDS CONFIGURATION + +This file is injected into every AI conversation when working from this branch directory. Configure it with: + +- Who this branch is (role, purpose) +- Key commands and workflows +- Architecture overview +- Critical files and operational rules +- Integration points with other branches diff --git a/src/aipass/daemon/.gitignore b/src/aipass/daemon/.gitignore new file mode 100644 index 00000000..9cf1dfc4 --- /dev/null +++ b/src/aipass/daemon/.gitignore @@ -0,0 +1,14 @@ +__pycache__/ +*.pyc +*.pyo +.env +*.egg-info/ +.coverage +htmlcov/ +.pytest_cache/ +.mypy_cache/ +dist/ +build/ +*.log +*.tmp +*.swp diff --git a/src/aipass/daemon/docs/.gitkeep b/src/aipass/daemon/docs/.gitkeep new file mode 100644 index 00000000..e69de29b diff --git a/src/aipass/daemon/pytest.ini b/src/aipass/daemon/pytest.ini new file mode 100644 index 00000000..c3f21db6 --- /dev/null +++ b/src/aipass/daemon/pytest.ini @@ -0,0 +1,21 @@ +[pytest] +# Test discovery paths +testpaths = tests + +# Test file patterns +python_files = test_*.py +python_functions = test_* +python_classes = Test* + +# Command-line options (always applied) +addopts = + -v # Verbose output + --tb=short # Short traceback format + --strict-markers # Raise error on unknown markers + -ra # Show summary of all test outcomes + +# Test markers (for categorizing tests) +markers = + unit: Unit tests + integration: Integration tests + slow: Tests that take significant time diff --git a/src/aipass/memory/.aipass/aipass_local_prompt.md b/src/aipass/memory/.aipass/aipass_local_prompt.md new file mode 100644 index 00000000..b8ad85f5 --- /dev/null +++ b/src/aipass/memory/.aipass/aipass_local_prompt.md @@ -0,0 +1,14 @@ +# MEMORY Branch-Local Context + + +> Auto-created by aipass init. Customize for your branch. + +## Status: NEEDS CONFIGURATION + +This file is injected into every AI conversation when working from this branch directory. Configure it with: + +- Who this branch is (role, purpose) +- Key commands and workflows +- Architecture overview +- Critical files and operational rules +- Integration points with other branches diff --git a/src/aipass/memory/.gitignore b/src/aipass/memory/.gitignore new file mode 100644 index 00000000..9cf1dfc4 --- /dev/null +++ b/src/aipass/memory/.gitignore @@ -0,0 +1,14 @@ +__pycache__/ +*.pyc +*.pyo +.env +*.egg-info/ +.coverage +htmlcov/ +.pytest_cache/ +.mypy_cache/ +dist/ +build/ +*.log +*.tmp +*.swp diff --git a/src/aipass/memory/docs/.gitkeep b/src/aipass/memory/docs/.gitkeep new file mode 100644 index 00000000..e69de29b diff --git a/src/aipass/memory/pytest.ini b/src/aipass/memory/pytest.ini new file mode 100644 index 00000000..c3f21db6 --- /dev/null +++ b/src/aipass/memory/pytest.ini @@ -0,0 +1,21 @@ +[pytest] +# Test discovery paths +testpaths = tests + +# Test file patterns +python_files = test_*.py +python_functions = test_* +python_classes = Test* + +# Command-line options (always applied) +addopts = + -v # Verbose output + --tb=short # Short traceback format + --strict-markers # Raise error on unknown markers + -ra # Show summary of all test outcomes + +# Test markers (for categorizing tests) +markers = + unit: Unit tests + integration: Integration tests + slow: Tests that take significant time diff --git a/src/aipass/memory/tests/conftest.py b/src/aipass/memory/tests/conftest.py new file mode 100644 index 00000000..3cccc54b --- /dev/null +++ b/src/aipass/memory/tests/conftest.py @@ -0,0 +1,42 @@ + +# ===================AIPASS==================== +# META DATA HEADER +# Name: tests/conftest.py +# Date: 2025-11-08 +# Version: 1.0.0 +# Category: cortex/tests +# +# CHANGELOG (Max 5 entries): +# - v1.0.0 (2025-11-08): Initial implementation - Shared pytest fixtures +# +# CODE STANDARDS: +# - Error handling: Use error handler system (apps/handlers/error/) +# ============================================= + +"""Shared pytest fixtures for cortex tests""" +import pytest +import shutil +import tempfile +from pathlib import Path +from typing import Generator + + +@pytest.fixture +def temp_test_dir() -> Generator[Path, None, None]: + """Creates temporary directory for testing, cleans up after""" + test_dir = Path(tempfile.mkdtemp()) + yield test_dir + if test_dir.exists(): + shutil.rmtree(test_dir) + + +@pytest.fixture +def sample_test_data() -> dict: + """Provides sample test data + + Customize this fixture for your module's needs + """ + return { + "test_key": "test_value", + "sample_data": "example" + }