Conditions | 3 |
Total Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | # pylint: disable=redefined-outer-name,unused-variable,expression-not-assigned,singleton-comparison |
||
46 | def describe_run(): |
||
47 | |||
48 | def when_config_missing(runner, tmp): |
||
49 | path = tmp.joinpath("env-diff.yml") |
||
50 | with suppress(FileNotFoundError): |
||
51 | path.unlink() |
||
52 | |||
53 | result = runner.invoke(main, []) |
||
54 | |||
55 | expect(result.output) == \ |
||
56 | "No config file found, generate one with '--init'\n" |
||
57 | expect(result.exit_code) == 1 |
||
58 |