Skip to content

Commit

Permalink
removed tautological argument
Browse files Browse the repository at this point in the history
  • Loading branch information
marscher committed Dec 7, 2023
1 parent 700280b commit e7e6bb8
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions weldx_widgets/tests/test_process.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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)
Expand Down

0 comments on commit e7e6bb8

Please sign in to comment.