From 0cf02e9c1d400fb15e7d1f8df4f5310c0095ba33 Mon Sep 17 00:00:00 2001 From: jaseg Date: Tue, 21 Jun 2022 15:34:14 +0200 Subject: fix local tests --- gerbolyze/tests/test_integration.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'gerbolyze') diff --git a/gerbolyze/tests/test_integration.py b/gerbolyze/tests/test_integration.py index c930b87..7c3ac20 100644 --- a/gerbolyze/tests/test_integration.py +++ b/gerbolyze/tests/test_integration.py @@ -40,26 +40,26 @@ def run_command(*args): def test_template_round_trip(): with tempfile.NamedTemporaryFile(suffix='.svg') as out_svg,\ tempfile.TemporaryDirectory() as out_dir: - run_command('python', '-m', 'gerbolyze', 'empty-template', '--force', out_svg.name) - run_command('python', '-m', 'gerbolyze', 'convert', out_svg.name, out_dir) + run_command('python3', '-m', 'gerbolyze', 'empty-template', '--force', out_svg.name) + run_command('python3', '-m', 'gerbolyze', 'convert', out_svg.name, out_dir) def test_zip_write(): with tempfile.NamedTemporaryFile(suffix='.svg') as out_svg,\ tempfile.NamedTemporaryFile(suffix='.zip') as out_zip: - run_command('python', '-m', 'gerbolyze', 'empty-template', '--force', out_svg.name) - run_command('python', '-m', 'gerbolyze', 'convert', out_svg.name, out_zip.name) + run_command('python3', '-m', 'gerbolyze', 'empty-template', '--force', out_svg.name) + run_command('python3', '-m', 'gerbolyze', 'convert', out_svg.name, out_zip.name) @pytest.mark.parametrize('reference', REFERENCE_SVGS) def test_complex_conversion(reference): infile = reference_path(reference) with tempfile.NamedTemporaryFile(suffix='.zip') as out_zip: - run_command('python', '-m', 'gerbolyze', 'convert', infile, out_zip.name) - run_command('python', '-m', 'gerbolyze', 'convert', '--pattern-complete-tiles-only', '--use-apertures-for-patterns', infile, out_zip.name) + run_command('python3', '-m', 'gerbolyze', 'convert', infile, out_zip.name) + run_command('python3', '-m', 'gerbolyze', 'convert', '--pattern-complete-tiles-only', '--use-apertures-for-patterns', infile, out_zip.name) @pytest.mark.parametrize('reference', REFERENCE_GERBERS) def test_template(reference): with tempfile.NamedTemporaryFile(suffix='.zip') as out_svg: infile = reference_path(reference) - run_command('python', '-m', 'gerbolyze', 'template', '--top', '--force', infile, out_svg.name) - run_command('python', '-m', 'gerbolyze', 'template', '--bottom', '--force', '--vector', infile, out_svg.name) + run_command('python3', '-m', 'gerbolyze', 'template', '--top', '--force', infile, out_svg.name) + run_command('python3', '-m', 'gerbolyze', 'template', '--bottom', '--force', '--vector', infile, out_svg.name) -- cgit