| Conditions | 1 |
| Total Lines | 11 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | import os |
||
| 14 | def test_launching(tmpdir): |
||
| 15 | target_directory = str(tmpdir.mkdir('unittest-datasets-dir')) |
||
| 16 | os.environ["COLLECTIONS_DIR"] = target_directory |
||
| 17 | ro = subprocess.run(['transform', 'posts', os.path.join(this_dir, 'test-pipeline.cfg'), '--sample 100', '--help'], stdout=subprocess.PIPE, stderr=subprocess.PIPE) |
||
| 18 | assert ro.returncode == 0 |
||
| 19 | ro = subprocess.run(['train', '--help'], stdout=subprocess.PIPE, stderr=subprocess.PIPE) |
||
| 20 | assert ro.returncode == 0 |
||
| 21 | ro = subprocess.run(['tune', '--help'], stdout=subprocess.PIPE, stderr=subprocess.PIPE) |
||
| 22 | assert ro.returncode == 0 |
||
| 23 | ro = subprocess.run(['make-graphs', '--help'], stdout=subprocess.PIPE, stderr=subprocess.PIPE) |
||
| 24 | assert ro.returncode == 0 |
||
| 25 | |||
| 30 |
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.