Skip to content

Commit f9e2744

Browse files
committed
Rename tests dir from 'internal' to 'custom'
1 parent 6151c8e commit f9e2744

4 files changed

Lines changed: 22 additions & 2 deletions

File tree

.fernignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ src/humanloop/cli
1818

1919
## Tests
2020

21-
tests/internal
21+
tests/custom
2222

2323
## CI
2424

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,6 @@ poetry.toml
55
.ruff_cache/
66
.vscode
77
.env
8+
.env.test
89
tests/assets/*.jsonl
910
tests/assets/*.parquet

tests/custom/README.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Custom Tests Directory
2+
3+
This directory contains custom tests for the Humanloop Python SDK. While the main SDK is auto-generated using [Fern](https://buildwithfern.com/), this directory allows us to add our own test implementations that won't be overwritten during regeneration.
4+
5+
## Why Custom Tests?
6+
7+
- **Preservation**: Tests in this directory won't be overwritten when regenerating the SDK
8+
- **Custom Implementation**: Allows testing of our own implementations beyond the auto-generated code
9+
- **Integration**: Enables testing of how our custom code works with the auto-generated SDK
10+
11+
## Running Tests
12+
13+
```bash
14+
# Run all custom tests
15+
pytest tests/custom/
16+
17+
# Run specific test file
18+
pytest tests/custom/sync/test_sync_client.py
19+
```

tests/custom/integration/test_evals.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import pytest
55
from humanloop.client import Humanloop
66
from humanloop.error import HumanloopRuntimeError
7-
from tests.integration.conftest import TestIdentifiers
7+
from tests.custom.integration.conftest import TestIdentifiers
88

99

1010
def test_eval_run_works_on_online_files(

0 commit comments

Comments
 (0)