| Conditions | 1 |
| Total Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | import logging |
||
| 9 | def test_init(self): |
||
| 10 | LoggingConfiguration.init() |
||
| 11 | logger = logging.getLogger(__name__) |
||
| 12 | stat_info_before = os.stat('grortir.log') |
||
| 13 | size_before = stat_info_before.st_size |
||
| 14 | logger.info('Test INFO level') |
||
| 15 | logger.debug('Test DEBUG level') |
||
| 16 | stat_info_after = os.stat('grortir.log') |
||
| 17 | size_after = stat_info_after.st_size |
||
| 18 | self.assertTrue(size_before < size_after) |
||
| 19 |
This check looks for invalid names for a range of different identifiers.
You can set regular expressions to which the identifiers must conform if the defaults do not match your requirements.
If your project includes a Pylint configuration file, the settings contained in that file take precedence.
To find out more about Pylint, please refer to their site.