Commit 15e0d18
authored
fix: improve test isolation in test_deep_search_no_results (#80)
* fix: improve test isolation in test_deep_search_no_results
Expand filtering to catch all test entity prefixes including:
- concurrent_test (from parallel test execution)
- test_ (common test prefix)
- e2e_ (e2e test prefix)
- bulk_ (bulk operation tests)
Also improve error message to show which helpers were found if
assertion fails, making debugging easier.
Fixes #79
* fix: address Copilot PR review feedback
- Fix comment to include all 5 prefixes (was missing bulk_)
- Use startswith() on object_id instead of substring matching
to avoid false positives (e.g., sensor.contest_winner)
- Changed test_prefixes to tuple for startswith() compatibility
- Added explanatory comment with example1 parent 1c0d131 commit 15e0d18
1 file changed
Lines changed: 14 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
327 | 327 | | |
328 | 328 | | |
329 | 329 | | |
330 | | - | |
331 | | - | |
332 | | - | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
333 | 343 | | |
334 | 344 | | |
335 | 345 | | |
336 | | - | |
| 346 | + | |
337 | 347 | | |
338 | 348 | | |
0 commit comments