Conditions | 2 |
Total Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Changes | 3 | ||
Bugs | 0 | Features | 0 |
1 | # pylint: disable=redefined-outer-name,unused-variable,expression-not-assigned,singleton-comparison |
||
33 | def when_config_missing(runner, tmp): |
||
34 | path = tmp.joinpath("env-diff.yml") |
||
35 | with suppress(FileNotFoundError): |
||
36 | path.unlink() |
||
37 | |||
38 | result = runner.invoke(main, ['--init']) |
||
39 | |||
40 | expect(result.output) == ( |
||
41 | "Generated config file: {}\n".format(path) + |
||
42 | "Edit this file to match your application\n" |
||
43 | ) |
||
44 | expect(result.exit_code) == 0 |
||
45 | |||
58 |