Commit c2af53c
test: prevent storage directory leak from randomized env vars test
The test_get_env_with_randomized_env_vars test was overriding
APIFY_LOCAL_STORAGE_DIR with a random 10-char string, causing
Actor.init() to create a storage directory in the project root.
Exclude LOCAL_STORAGE_DIR from randomization and use the tmp_path
value set by the _isolate_test_environment fixture instead.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 0e7fead commit c2af53c
1 file changed
Lines changed: 8 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
| 26 | + | |
25 | 27 | | |
26 | 28 | | |
27 | 29 | | |
| |||
31 | 33 | | |
32 | 34 | | |
33 | 35 | | |
34 | | - | |
| 36 | + | |
35 | 37 | | |
36 | 38 | | |
37 | 39 | | |
38 | 40 | | |
| 41 | + | |
39 | 42 | | |
40 | 43 | | |
41 | 44 | | |
| |||
127 | 130 | | |
128 | 131 | | |
129 | 132 | | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
130 | 137 | | |
131 | 138 | | |
132 | 139 | | |
| |||
0 commit comments