| Conditions | 1 |
| Total Lines | 14 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | import os |
||
| 11 | def test_empty_output(): |
||
| 12 | output_verbose = subprocess.run(["python", verbose_file], stdout=subprocess.PIPE) |
||
| 13 | output_non_verbose = subprocess.run( |
||
| 14 | ["python", non_verbose_file], stdout=subprocess.PIPE |
||
| 15 | ) |
||
| 16 | |||
| 17 | verbose_str = output_verbose.stdout.decode() |
||
| 18 | non_verbose_str = output_non_verbose.stdout.decode() |
||
| 19 | |||
| 20 | print("\n verbose_str \n", verbose_str, "\n") |
||
| 21 | print("\n non_verbose_str \n", non_verbose_str, "\n") |
||
| 22 | |||
| 23 | assert "Results:" in verbose_str |
||
| 24 | assert not non_verbose_str |
||
| 25 |