Commit e299f33
committed
refactor(humanitix): drop importlib boilerplate and os.chdir from tests
With tests/conftest.py now putting the integration root on sys.path
and the workspace conftest.py patching Integration.load to find
config.json from the caller's directory, tests can import the
integration with a plain 'from humanitix import humanitix'.
Removes:
- The importlib.util.spec_from_file_location dance in both test files.
- The process-global os.chdir(_parent) calls (the integration test
file did not restore cwd, leaving it inside humanitix/ for any
test file collected after it).
- The legacy tests/context.py shim from the pre-SDK-2.0 testbed.
Matches the simpler pattern used in PR #280 (supadata), PR #289
(google-sheets), and PR #307 (coda).1 parent e179dba commit e299f33
3 files changed
Lines changed: 10 additions & 48 deletions
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
16 | | - | |
17 | 15 | | |
18 | | - | |
19 | | - | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
20 | 19 | | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
| 20 | + | |
33 | 21 | | |
34 | 22 | | |
35 | 23 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
31 | 13 | | |
32 | 14 | | |
33 | 15 | | |
| |||
0 commit comments