From 2bc9bf45335e0a32101c324f58a38f84266095e9 Mon Sep 17 00:00:00 2001 From: Katie Mummah Date: Thu, 18 Jul 2024 12:57:46 -0500 Subject: [PATCH 1/2] add recipes to tests to avoid undesired transmutation --- src/source_tests.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/source_tests.cc b/src/source_tests.cc index 42c6fe551..10208e733 100644 --- a/src/source_tests.cc +++ b/src/source_tests.cc @@ -164,12 +164,14 @@ TEST_F(SourceTest, Package) { std::string config = "commod" + "recipe" "testpackage" "5"; int simdur = 3; cyclus::MockSim sim(cyclus::AgentSpec (":cycamore:Source"), config, simdur); + sim.context()->AddRecipe(recipe_name, recipe); sim.context()->AddPackage(package_name, 3, 4, "first"); package = sim.context()->GetPackage(package_name); @@ -193,6 +195,7 @@ TEST_F(SourceTest, TransportUnit) { std::string config = "commod" + "recipe" "testpackage" "testtu" "10"; @@ -200,6 +203,7 @@ TEST_F(SourceTest, TransportUnit) { int simdur = 2; cyclus::MockSim sim(cyclus::AgentSpec (":cycamore:Source"), config, simdur); + sim.context()->AddRecipe(recipe_name, recipe); sim.context()->AddPackage(package_name, 3, 4, "equal"); package = sim.context()->GetPackage(package_name); sim.context()->AddTransportUnit(tu_name, 2, 2); From 8126c14ee161c6ec9911a9b8b07d21c18bb4e8fb Mon Sep 17 00:00:00 2001 From: Katie Mummah Date: Thu, 18 Jul 2024 13:00:40 -0500 Subject: [PATCH 2/2] changelog --- CHANGELOG.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 0a67ead68..e4460ca1b 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -7,7 +7,7 @@ Since last release **Added:** * Added package parameter to storage (#603, #612) -* Added package parameter to source (#613) +* Added package parameter to source (#613, #617) **Changed:**