Repository navigation
Commit 92ad123
committed
fix(sqlserver): defer yaml import and skip scenario registration when config absent
In tests/providers/scenarios.py:
- Move 'import yaml' inside _load_scenarios_from_config() so missing
PyYAML does not break module import when scenarios are unused.
- When the scenarios config file is missing, print a friendly skip
notice and return instead of raising FileNotFoundError, allowing
providers/registry import to succeed without a configured environment.1 parent 5214fe5 commit 92ad123
1 file changed
Lines changed: 3 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
29 | | - | |
30 | 28 | | |
31 | 29 | | |
32 | 30 | | |
33 | 31 | | |
34 | 32 | | |
35 | 33 | | |
36 | 34 | | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
| 35 | + | |
| 36 | + | |
42 | 37 | | |
43 | 38 | | |
44 | 39 | | |
| 40 | + | |
45 | 41 | | |
46 | 42 | | |
47 | 43 | | |
| |||
0 commit comments