@@ -54,13 +54,10 @@ def test_minimal_fields_and_renames(tmp_path):
5454
5555
5656def test_tsdc_and_standard_compliance_wrapped_as_lists (tmp_path ):
57- content = (
58- MINIMAL
59- + """
57+ content = MINIMAL + """
6058tsdc = "ASM"
6159standard-compliance = "DIN EN 1335"
6260"""
63- )
6461 path = _write (tmp_path , content )
6562 manifest = OkhLoshConverter ().okh_losh_to_okh (path )
6663
@@ -69,13 +66,10 @@ def test_tsdc_and_standard_compliance_wrapped_as_lists(tmp_path):
6966
7067
7168def test_manufacturing_instructions_string_and_list_become_document_refs (tmp_path ):
72- content = (
73- MINIMAL
74- + """
69+ content = MINIMAL + """
7570manufacturing-instructions = "https://example.com/manual.pdf"
7671user-manual = ["https://example.com/a.pdf", "https://example.com/b.pdf"]
7772"""
78- )
7973 path = _write (tmp_path , content )
8074 manifest = OkhLoshConverter ().okh_losh_to_okh (path )
8175
@@ -89,14 +83,11 @@ def test_manufacturing_instructions_string_and_list_become_document_refs(tmp_pat
8983
9084
9185def test_software_installation_guide_kebab_case_renamed (tmp_path ):
92- content = (
93- MINIMAL
94- + """
86+ content = MINIMAL + """
9587[[software]]
9688release = "https://example.com/release/1.0"
9789installation-guide = "https://example.com/install.md"
9890"""
99- )
10091 path = _write (tmp_path , content )
10192 manifest = OkhLoshConverter ().okh_losh_to_okh (path )
10293
@@ -106,15 +97,12 @@ def test_software_installation_guide_kebab_case_renamed(tmp_path):
10697
10798
10899def test_outer_dimensions_preserved_as_is (tmp_path ):
109- content = (
110- MINIMAL
111- + """
100+ content = MINIMAL + """
112101[outer-dimensions]
113102width = 400
114103depth = 350.8
115104height = 150
116105"""
117- )
118106 path = _write (tmp_path , content )
119107 manifest = OkhLoshConverter ().okh_losh_to_okh (path )
120108
@@ -126,9 +114,7 @@ def test_outer_dimensions_preserved_as_is(tmp_path):
126114
127115
128116def test_image_array_picks_primary_and_preserves_full_list_in_metadata (tmp_path ):
129- content = (
130- MINIMAL
131- + """
117+ content = MINIMAL + """
132118[[image]]
133119location = "imgs/logo.jpg"
134120slots = ["logo"]
@@ -140,7 +126,6 @@ def test_image_array_picks_primary_and_preserves_full_list_in_metadata(tmp_path)
140126[[image]]
141127location = "imgs/other.jpg"
142128"""
143- )
144129 path = _write (tmp_path , content )
145130 manifest = OkhLoshConverter ().okh_losh_to_okh (path )
146131
@@ -163,13 +148,10 @@ def test_image_as_bare_string_handled(tmp_path):
163148
164149
165150def test_mass_and_release_go_to_metadata (tmp_path ):
166- content = (
167- MINIMAL
168- + """
151+ content = MINIMAL + """
169152mass = 50330.0
170153release = "https://example.com/releases/1.0.0"
171154"""
172- )
173155 path = _write (tmp_path , content )
174156 manifest = OkhLoshConverter ().okh_losh_to_okh (path )
175157
0 commit comments