| Conditions | 4 |
| Total Lines | 14 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | from LORIS.timepoint import visit_number_extraction |
||
| 3 | def test_visit_number_extraction(): |
||
| 4 | Prefix = "V" |
||
| 5 | numbers = [1, 2, 3, 9] |
||
| 6 | |||
| 7 | global timepoints |
||
| 8 | timepoints = [] |
||
| 9 | |||
| 10 | for number in numbers: |
||
| 11 | timepoints.append(Prefix + str(number)) |
||
| 12 | |||
| 13 | DualList = zip(numbers, timepoints) |
||
| 14 | |||
| 15 | for tuple in DualList: |
||
| 16 | assert str(tuple[0]) == visit_number_extraction(tuple[1])[0] |
||
| 17 | |||
| 18 | # todo: 10+ visit number WILL FAIL! |
||
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.