Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/guides/CREATE_CONNECTOR_GUIDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -771,14 +771,14 @@ Study these existing connectors for best practices:

### 1. Execute Flow
```bash
source src/docpipe_app/backend/.venv/bin/activate
source .venv/bin/activate
export PYTHONPATH="$(pwd)/src:${PYTHONPATH}"
docling-pipelines --flow-file tests/flow_your_connector.json
```

### 2. Run Tests
```bash
source src/docpipe_app/backend/.venv/bin/activate
source .venv/bin/activate
export PYTHONPATH="$(pwd)/src:${PYTHONPATH}"
uv run pytest tests/unit/operators/ingest/test_your_connector.py -v
```
Expand Down
11 changes: 5 additions & 6 deletions docs/internals/DOCUMENT_LIBRARIES_ARCHITECTURE.md
Original file line number Diff line number Diff line change
Expand Up @@ -246,20 +246,19 @@ tests/unit/core/assets_management/document_libraries/
### Running Tests

```bash
# Navigate to backend directory
cd src/docpipe_app/backend
# Run from the project root

# Set PYTHONPATH
export PYTHONPATH="$(cd ../../.. && pwd)/src/docpipe_app/backend:${PYTHONPATH}"
export PYTHONPATH="$(pwd)/src:${PYTHONPATH}"

# Run all document library tests
uv run pytest ../../../tests/unit/core/assets_management/document_libraries/ -v
uv run pytest tests/unit/core/assets_management/document_libraries/ -v

# Run specific test file
uv run pytest ../../../tests/unit/core/assets_management/document_libraries/domain/models/test_document_library_validation.py -v
uv run pytest tests/unit/core/assets_management/document_libraries/domain/models/test_document_library_validation.py -v

# Run with coverage
uv run pytest ../../../tests/unit/core/assets_management/document_libraries/ --cov=core.assets_management.document_libraries --cov-report=html
uv run pytest tests/unit/core/assets_management/document_libraries/ --cov=core.assets_management.document_libraries --cov-report=html
```

## Usage Examples
Expand Down
Loading