Code Duplication    Length = 15-20 lines in 2 locations

tests/test_cli.py 2 locations

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