| Conditions | 2 |
| Total Lines | 24 |
| Lines | 0 |
| Ratio | 0 % |
| 1 | # pylint: disable=redefined-outer-name,expression-not-assigned,attribute-defined-outside-init,no-member |
||
| 49 | def test_existing_files_are_reorderd(tmpdir): |
||
| 50 | tmpdir.chdir() |
||
| 51 | with open("sample.yml", 'w') as stream: |
||
| 52 | stream.write(strip(""" |
||
| 53 | falsey: 1 |
||
| 54 | number_int: 2 |
||
| 55 | number_real: 3 |
||
| 56 | string: 4 |
||
| 57 | truthy: 5 |
||
| 58 | dictionary: {label: foo} |
||
| 59 | """)) |
||
| 60 | sample = Sample() |
||
| 61 | sample.falsey = 0 |
||
| 62 | |||
| 63 | expect(sample.__mapper__.text) == strip(""" |
||
| 64 | string: 4 |
||
| 65 | number_int: 2 |
||
| 66 | dictionary: |
||
| 67 | status: false |
||
| 68 | label: foo |
||
| 69 | number_real: 3.0 |
||
| 70 | truthy: true |
||
| 71 | falsey: false |
||
| 72 | """) |
||
| 73 |
This can be caused by one of the following:
1. Missing Dependencies
This error could indicate a configuration issue of Pylint. Make sure that your libraries are available by adding the necessary commands.
2. Missing __init__.py files
This error could also result from missing
__init__.pyfiles in your module folders. Make sure that you place one file in each sub-folder.