From e7e6bb83a2b8da694d7c00e821832dd13e0458e4 Mon Sep 17 00:00:00 2001 From: "Martin K. Scherer" Date: Thu, 7 Dec 2023 16:40:29 +0100 Subject: [PATCH] removed tautological argument --- weldx_widgets/tests/test_process.py | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/weldx_widgets/tests/test_process.py b/weldx_widgets/tests/test_process.py index c2937fa..6463cf0 100644 --- a/weldx_widgets/tests/test_process.py +++ b/weldx_widgets/tests/test_process.py @@ -7,14 +7,14 @@ @pytest.mark.parametrize( - ("kind", "write_file"), + "kind", ( - ("spray", True), - ("UI", True), - ("II", True), + "spray", + "UI", + "II", ), ) -def test_import_export(kind, write_file): +def test_import_export(kind): """Ensure import and exports of Widgets works.""" w = WidgetGMAW(process_type=kind) proc = w.welding_process @@ -32,12 +32,11 @@ def test_import_export(kind, write_file): tree = w.to_tree() - if write_file: - tree = { - key: value - for key, value in weldx.WeldxFile(tree=tree, mode="rw").items() - if key not in ("asdf_library", "history") - } + tree = { + key: value + for key, value in weldx.WeldxFile(tree=tree, mode="rw").items() + if key not in ("asdf_library", "history") + } w2 = WidgetGMAW() w2.from_tree(tree)