@@ 198-217 (lines=20) @@ | ||
195 | expect(cmd.stdout) == "" |
|
196 | expect(cmd.returncode) == 0 |
|
197 | ||
198 | @pytest.mark.skipif(sys.platform == 'win32', reason="unix only") |
|
199 | def it_shows_failing_programs(cli, tmp_path): |
|
200 | verchew_ini = tmp_path / 'verchew.ini' |
|
201 | verchew_ini.write_text(""" |
|
202 | [Working Program] |
|
203 | ||
204 | cli = working-program |
|
205 | version = 1.2 |
|
206 | ||
207 | [Newer Working Program] |
|
208 | ||
209 | cli = working-program |
|
210 | version = 1.3 |
|
211 | """) |
|
212 | ||
213 | cmd = cli('--root', str(tmp_path), '--quiet') |
|
214 | ||
215 | expect(cmd.stderr) == "" |
|
216 | expect(cmd.stdout) == "Unmatched Newer Working Program version: 1.3\n" |
|
217 | expect(cmd.returncode) == 0 |
|
218 | ||
@@ 182-196 (lines=15) @@ | ||
179 | ||
180 | def describe_quiet(): |
|
181 | ||
182 | @pytest.mark.skipif(sys.platform == 'win32', reason="unix only") |
|
183 | def it_hides_output_when_no_error(cli, tmp_path): |
|
184 | verchew_ini = tmp_path / 'verchew.ini' |
|
185 | verchew_ini.write_text(""" |
|
186 | [Working Program] |
|
187 | ||
188 | cli = working-program |
|
189 | version = 1.2 |
|
190 | """) |
|
191 | ||
192 | cmd = cli('--root', str(tmp_path), '--quiet') |
|
193 | ||
194 | expect(cmd.stderr) == "" |
|
195 | expect(cmd.stdout) == "" |
|
196 | expect(cmd.returncode) == 0 |
|
197 | ||
198 | @pytest.mark.skipif(sys.platform == 'win32', reason="unix only") |
|
199 | def it_shows_failing_programs(cli, tmp_path): |