Commit bbb05b2
authored
Improve warning testing for bad patterns (#3)
disable_logging() manipulates a global setting so it may interfere with
any other concurrent tests. Instead, use the @test_logs macro to
capture logs.
I've also chosen to specifically test that a warning is produced here
(rather than just use @test_logs min_level=Error which would be more
like without_warnings()).1 parent 738dc1e commit bbb05b2
2 files changed
Lines changed: 12 additions & 27 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
55 | 54 | | |
56 | 55 | | |
57 | 56 | | |
58 | 57 | | |
59 | 58 | | |
60 | 59 | | |
61 | 60 | | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
72 | 65 | | |
73 | | - | |
74 | | - | |
| 66 | + | |
| 67 | + | |
75 | 68 | | |
76 | 69 | | |
77 | 70 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
0 commit comments