| @@ 223-242 (lines=20) @@ | ||
| 220 | expect(cmd.stdout) == "" |
|
| 221 | expect(cmd.returncode) == 0 |
|
| 222 | ||
| 223 | @pytest.mark.skipif(sys.platform == 'win32', reason="unix only") |
|
| 224 | def it_shows_failing_programs(cli, tmp_path): |
|
| 225 | verchew_ini = tmp_path / 'verchew.ini' |
|
| 226 | verchew_ini.write_text( |
|
| 227 | """ |
|
| 228 | [Working Program] |
|
| 229 | ||
| 230 | cli = working-program |
|
| 231 | version = 1.2 |
|
| 232 | ||
| 233 | [Newer Working Program] |
|
| 234 | ||
| 235 | cli = working-program |
|
| 236 | version = 1.3 |
|
| 237 | """ |
|
| 238 | ) |
|
| 239 | ||
| 240 | cmd = cli('--root', str(tmp_path), '--quiet') |
|
| 241 | ||
| 242 | expect(cmd.stderr) == "" |
|
| 243 | expect(cmd.stdout) == "Unmatched Newer Working Program version: 1.3\n" |
|
| 244 | expect(cmd.returncode) == 0 |
|
| 245 | ||
| @@ 205-219 (lines=15) @@ | ||
| 202 | ||
| 203 | ||
| 204 | def describe_quiet(): |
|
| 205 | @pytest.mark.skipif(sys.platform == 'win32', reason="unix only") |
|
| 206 | def it_hides_output_when_no_error(cli, tmp_path): |
|
| 207 | verchew_ini = tmp_path / 'verchew.ini' |
|
| 208 | verchew_ini.write_text( |
|
| 209 | """ |
|
| 210 | [Working Program] |
|
| 211 | ||
| 212 | cli = working-program |
|
| 213 | version = 1.2 |
|
| 214 | """ |
|
| 215 | ) |
|
| 216 | ||
| 217 | cmd = cli('--root', str(tmp_path), '--quiet') |
|
| 218 | ||
| 219 | expect(cmd.stderr) == "" |
|
| 220 | expect(cmd.stdout) == "" |
|
| 221 | expect(cmd.returncode) == 0 |
|
| 222 | ||