Conditions | 5 |
Total Lines | 25 |
Lines | 0 |
Ratio | 0 % |
Changes | 3 | ||
Bugs | 0 | Features | 0 |
1 | # pylint: disable=redefined-outer-name,unused-variable,expression-not-assigned,singleton-comparison |
||
16 | def describe_cli(): |
||
17 | |||
18 | def describe_init(): |
||
19 | |||
20 | def when_config_missing(runner, tmpdir): |
||
21 | tmpdir.chdir() |
||
22 | |||
23 | result = runner.invoke(main, ['--init']) |
||
24 | |||
25 | expect(result.output) == ( |
||
26 | "Generated config file: {}/env-diff.yml\n".format(tmpdir) + |
||
27 | "Edit this file to match your application\n" |
||
28 | ) |
||
29 | expect(result.exit_code) == 0 |
||
30 | |||
31 | def describe_run(): |
||
32 | |||
33 | def when_config_missing(runner, tmpdir): |
||
34 | tmpdir.chdir() |
||
35 | |||
36 | result = runner.invoke(main, []) |
||
37 | |||
38 | expect(result.output) == \ |
||
39 | "No config file found, generate one with '--init'\n" |
||
40 | expect(result.exit_code) == 1 |
||
41 |