@@ -78,6 +78,7 @@ def test_config5() -> Configuration:
7878 'macro' , Ports (
7979 f_init = 'init' , o_i = ['out1' , 'out2' ], s = ['in1' , 'in2' ],
8080 o_f = ['final' ]),
81+ 'description' ,
8182 BaseEnv .LOGIN ,
8283 ['gcc/13.3.0' , 'FFTW/3.2.1' ],
8384 Path ('/home/user/.venv' ),
@@ -110,6 +111,7 @@ def test_config5_text() -> str:
110111 ' - in2\n '
111112 ' o_f:\n '
112113 ' - final\n '
114+ ' description: description\n '
113115 ' base_env: login\n '
114116 ' modules:\n '
115117 ' - gcc/13.3.0\n '
@@ -132,6 +134,7 @@ def test_config6() -> Configuration:
132134 model1 = Model (
133135 'resources_test' ,
134136 None ,
137+ 'description' ,
135138 [
136139 Component ('singlethreaded' , Ports (), 'a' ),
137140 Component ('multithreaded' , Ports (), 'b' ),
@@ -141,6 +144,7 @@ def test_config6() -> Configuration:
141144 model2 = Model (
142145 'resources_test2' ,
143146 None ,
147+ 'description' ,
144148 [
145149 Component ('mpi_cores1' , Ports (), 'c' ),
146150 Component ('mpi_cores2' , Ports (), 'd' ),
@@ -161,9 +165,12 @@ def test_config6() -> Configuration:
161165
162166@pytest .fixture
163167def test_config7 () -> Configuration :
164- model1 = Model ('got_resources' , None , [Component ('singlethreaded' , Ports (), 'a' )])
168+ model1 = Model (
169+ 'got_resources' , None , 'description' ,
170+ [Component ('singlethreaded' , Ports (), 'description' , 'a' )])
165171 model2 = Model (
166- 'missing_resources' , None , [Component ('singlethreaded' , Ports (), 'b' )])
172+ 'missing_resources' , None , 'description' ,
173+ [Component ('singlethreaded' , Ports (), 'description' , 'b' )])
167174 resources = [ThreadedResReq (Ref ('got_resources.singlethreaded' ), 1 )]
168175
169176 return Configuration ('test_config7' , None , [model1 , model2 ], None , None , resources )
@@ -173,24 +180,27 @@ def test_config7() -> Configuration:
173180def test_config8 () -> Configuration :
174181 model1 = Model (
175182 'implementations_test' ,
176- None ,
183+ None , 'description' ,
177184 [
178- Component ('no_implementation' , Ports (o_i = ['out' ], s = ['in' ]), None ),
179185 Component (
180- 'impl_no_ports' , Ports (f_init = ['in' ], o_f = ['out' ]), 'no_ports' ),
186+ 'no_implementation' , Ports (o_i = ['out' ], s = ['in' ]), 'description' ,
187+ None ),
188+ Component (
189+ 'impl_no_ports' , Ports (f_init = ['in' ], o_f = ['out' ]), 'description' ,
190+ 'no_ports' ),
181191 ])
182192
183193 model2 = Model (
184194 'implementations_test2' ,
185- None ,
195+ None , 'description' ,
186196 [
187197 Component (
188198 'impl_with_ports' , Ports (f_init = ['in' ], o_f = ['out' ]), 'with_ports' ),
189199 ])
190200
191201 programs = [
192202 Program (
193- 'no_ports' , None ,
203+ 'no_ports' , None , 'description' ,
194204 script = '/home/user/models/bin/modela' ),
195205 Program (
196206 'with_ports' ,
@@ -212,21 +222,25 @@ def test_config8() -> Configuration:
212222def test_config9 () -> Configuration :
213223 model1 = Model (
214224 'implementations_test_broken' ,
215- None ,
225+ None , 'description' ,
216226 [
217- Component ('no_implementation' , Ports (o_i = ['out' ], s = ['in' ]), None ),
218227 Component (
219- 'impl_ports_mismatch' , Ports (f_init = ['in' ], o_f = ['out' ]), 'ports1' ),
228+ 'no_implementation' , Ports (o_i = ['out' ], s = ['in' ]), 'description' ,
229+ None ),
230+ Component (
231+ 'impl_ports_mismatch' , Ports (f_init = ['in' ], o_f = ['out' ]),
232+ 'description' , 'ports1' ),
220233 ])
221234
222235 model2 = Model (
223236 'implementations_test2' ,
224- None ,
237+ None , 'description' ,
225238 [
226239 Component (
227- 'impl_also_wrong' , Ports (o_i = ['out' ], s = ['in' ]), 'ports2' ),
240+ 'impl_also_wrong' , Ports (o_i = ['out' ], s = ['in' ]), 'description' ,
241+ 'ports2' ),
228242 Component (
229- 'impl_extra_ports' , Ports (f_init = ['in' ]), 'ports3' ),
243+ 'impl_extra_ports' , Ports (f_init = ['in' ]), 'description' , ' ports3' ),
230244 ])
231245
232246 programs = [
0 commit comments