| Conditions | 2 |
| Total Lines | 10 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | import os |
||
| 37 | def test_command(source): |
||
| 38 | """ |
||
| 39 | Creates a command to be run via subprocess |
||
| 40 | :param source: str|None |
||
| 41 | :return: list |
||
| 42 | """ |
||
| 43 | test_files = get_test_files() |
||
| 44 | source_present_command = ['coverage', 'run', '--source', source, '-m', 'unittest'] + test_files |
||
| 45 | source_missing_command = ['coverage', 'run', '-m', 'unittest'] + test_files |
||
| 46 | return source_missing_command if source is None else source_present_command |
||
| 47 |