From 6b0382ab776dd8abcaefa0103c855f16372f62c3 Mon Sep 17 00:00:00 2001 From: jaseg Date: Sat, 25 Mar 2023 22:05:03 +0100 Subject: WIP --- gerbolyze/tests/resources/layers.svg | 2728 ++++++++++++++++++++++++++++++++++ gerbolyze/tests/test_integration.py | 8 + 2 files changed, 2736 insertions(+) create mode 100644 gerbolyze/tests/resources/layers.svg (limited to 'gerbolyze/tests') diff --git a/gerbolyze/tests/resources/layers.svg b/gerbolyze/tests/resources/layers.svg new file mode 100644 index 0000000..ff84f04 --- /dev/null +++ b/gerbolyze/tests/resources/layers.svg @@ -0,0 +1,2728 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/gerbolyze/tests/test_integration.py b/gerbolyze/tests/test_integration.py index 7c3ac20..668e745 100644 --- a/gerbolyze/tests/test_integration.py +++ b/gerbolyze/tests/test_integration.py @@ -63,3 +63,11 @@ def test_template(reference): 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) +def test_convert_layers(): + infile = reference_path('layers.svg') + with tempfile.TemporaryDirectory() as out_dir: + run_command('python3', '-m', 'gerbolyze', 'convert', infile, out_dir) + out_dir = Path(out_dir) + print(list(out_dir.glob('*'))) + assert False + -- cgit