Calling LoggerFactory ensures that Logger.findCaller gets patched.
(self)
| 154 | ) |
| 155 | |
| 156 | def test_sets_correct_logger(self): |
| 157 | """ |
| 158 | Calling LoggerFactory ensures that Logger.findCaller gets patched. |
| 159 | """ |
| 160 | LoggerFactory() |
| 161 | |
| 162 | assert logging.getLoggerClass() is _FixedFindCallerLogger |
| 163 | |
| 164 | def test_positional_argument_avoids_guessing(self): |
| 165 | """ |
nothing calls this directly
no test coverage detected