Skip to content

Commit 2724432

Browse files
authored
Merge pull request #617 from nuclearkatie/source_packaging
add recipes to source packaging tests to avoid undesired transmutation
2 parents 2bbf4bc + 8126c14 commit 2724432

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

CHANGELOG.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Since last release
77

88
**Added:**
99
* Added package parameter to storage (#603, #612)
10-
* Added package parameter to source (#613)
10+
* Added package parameter to source (#613, #617)
1111

1212
**Changed:**
1313

src/source_tests.cc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,12 +164,14 @@ TEST_F(SourceTest, Package) {
164164

165165
std::string config =
166166
"<outcommod>commod</outcommod>"
167+
"<outrecipe>recipe</outrecipe>"
167168
"<package>testpackage</package>"
168169
"<throughput>5</throughput>";
169170

170171
int simdur = 3;
171172
cyclus::MockSim sim(cyclus::AgentSpec (":cycamore:Source"), config, simdur);
172173

174+
sim.context()->AddRecipe(recipe_name, recipe);
173175
sim.context()->AddPackage(package_name, 3, 4, "first");
174176
package = sim.context()->GetPackage(package_name);
175177

@@ -193,13 +195,15 @@ TEST_F(SourceTest, TransportUnit) {
193195

194196
std::string config =
195197
"<outcommod>commod</outcommod>"
198+
"<outrecipe>recipe</outrecipe>"
196199
"<package>testpackage</package>"
197200
"<transport_unit>testtu</transport_unit>"
198201
"<throughput>10</throughput>";
199202

200203
int simdur = 2;
201204
cyclus::MockSim sim(cyclus::AgentSpec (":cycamore:Source"), config, simdur);
202205

206+
sim.context()->AddRecipe(recipe_name, recipe);
203207
sim.context()->AddPackage(package_name, 3, 4, "equal");
204208
package = sim.context()->GetPackage(package_name);
205209
sim.context()->AddTransportUnit(tu_name, 2, 2);

0 commit comments

Comments
 (0)