@@ -164,12 +164,14 @@ TEST_F(SourceTest, Package) {
164
164
165
165
std::string config =
166
166
" <outcommod>commod</outcommod>"
167
+ " <outrecipe>recipe</outrecipe>"
167
168
" <package>testpackage</package>"
168
169
" <throughput>5</throughput>" ;
169
170
170
171
int simdur = 3 ;
171
172
cyclus::MockSim sim (cyclus::AgentSpec (" :cycamore:Source" ), config, simdur);
172
173
174
+ sim.context ()->AddRecipe (recipe_name, recipe);
173
175
sim.context ()->AddPackage (package_name, 3 , 4 , " first" );
174
176
package = sim.context ()->GetPackage (package_name);
175
177
@@ -193,13 +195,15 @@ TEST_F(SourceTest, TransportUnit) {
193
195
194
196
std::string config =
195
197
" <outcommod>commod</outcommod>"
198
+ " <outrecipe>recipe</outrecipe>"
196
199
" <package>testpackage</package>"
197
200
" <transport_unit>testtu</transport_unit>"
198
201
" <throughput>10</throughput>" ;
199
202
200
203
int simdur = 2 ;
201
204
cyclus::MockSim sim (cyclus::AgentSpec (" :cycamore:Source" ), config, simdur);
202
205
206
+ sim.context ()->AddRecipe (recipe_name, recipe);
203
207
sim.context ()->AddPackage (package_name, 3 , 4 , " equal" );
204
208
package = sim.context ()->GetPackage (package_name);
205
209
sim.context ()->AddTransportUnit (tu_name, 2 , 2 );
0 commit comments