Commit graph

7 commits

Author SHA1 Message Date
Filip Christiansen
58dbe2cb7e
refactor: code cleanup, utils extraction, and test improvements (#141)
* Refactor code for lifespan, template usage, and improved tests

- Move background tasks and rate-limit handler into utils.py
- Reference TEMPLATES from config instead of inline Jinja2Templates
- Adopt Given/When/Then docstrings for test clarity
- Parametrize some tests and consolidate code across query_parser tests
- Add pytest.warns context handler to test_parse_repo_source_with_failed_git_command
2025-01-23 02:46:17 +01:00
Filip Christiansen
d721b00d03
Replace dict-based query with ParsedQuery dataclass (#133)
- Introduce ParsedQuery dataclass to store query parameters and metadata
- Update ingestion and parser modules to use ParsedQuery instead of dict[str, Any]
- Convert ignore_patterns and include_patterns to sets
- Clean references to max size and pattern handling
- Update tests to reflect new dataclass usage
2025-01-17 16:53:32 +01:00
Filip Christiansen
8137ce1064
test: add coverage for run_ingest_query and clone_repo async timeout (#129) 2025-01-15 02:12:45 +01:00
Rayan Louahche
1fd741ae17
Enhanced Directory Pattern Matching Test Coverage (#123) 2025-01-13 04:23:12 +01:00
Rayan Louahche
e8663c676a
Add test for non-existent file extension pattern (*.qwerty) (#121) 2025-01-12 08:34:21 +01:00
Rayan Louahche
aa470aa818
Add test for *.txt include pattern filtering (#116) 2025-01-09 13:24:51 +01:00
Filip Christiansen
6d92ed9f59
refactor: refactor module names to avoid function/module name clashes (#114)
- Renamed:
  - `clone.py`       → `repository_clone.py`
  - `ingest.py`      → `repository_ingest.py`
  - `ingest_from_query.py` → `query_ingestion.py`
  - `parse_query.py` → `query_parser.py`
2025-01-09 00:30:39 +01:00
Renamed from tests/test_ingest.py (Browse further)