| Total Complexity | 1 |
| Total Lines | 23 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | #!/usr/bin/env python |
||
| 2 | # -*- coding: utf-8 -*- |
||
| 3 | |||
| 4 | """Module documentation goes here.""" |
||
| 5 | |||
| 6 | import unittest |
||
| 7 | import sys |
||
| 8 | from src.hello import Greeter |
||
| 9 | from src.hello import main |
||
| 10 | |||
| 11 | class MyTestCase(unittest.TestCase): |
||
| 12 | """Class documentation goes here.""" |
||
| 13 | def test_default_greeting_set(self): |
||
| 14 | """Test documentation goes here.""" |
||
| 15 | INPUT="SDF" |
||
|
|
|||
| 16 | greeter = Greeter() |
||
| 17 | greeter.set_message(INPUT) |
||
| 18 | self.assertEqual(greeter.message, INPUT) |
||
| 19 | main(sys.argv[1:]) |
||
| 20 | |||
| 21 | if __name__ == '__main__': |
||
| 22 | unittest.main() |
||
| 23 |
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.