fix: load add_product_service mocking
Some checks failed
ci/woodpecker/pr/woodpecker Pipeline failed
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/pull_request_closed/woodpecker Pipeline was successful

This commit is contained in:
Aravinth Manivannan 2024-07-15 17:57:30 +05:30
parent 732f486aef
commit 3a8630abcd
Signed by: realaravinth
GPG key ID: F8F50389936984FF

View file

@ -210,11 +210,12 @@ mod tests {
inventory::{
application::services::{
add_category_service::tests::mock_add_category_service,
add_product_service::tests::mock_add_product_service,
add_store_service::AddStoreServiceBuilder, InventoryServicesBuilder,
},
domain::{
add_category_command::AddCategoryCommand, add_store_command::AddStoreCommand,
commands::InventoryCommand,
add_category_command::AddCategoryCommand, add_product_command::tests::get_command,
add_store_command::AddStoreCommand, commands::InventoryCommand,
},
},
tests::bdd::IS_NEVER_CALLED,
@ -250,6 +251,7 @@ mod tests {
IS_NEVER_CALLED,
AddCategoryCommand::new("foo".into(), None, UUID.clone(), UUID.clone()).unwrap(),
))
.add_product(mock_add_product_service(IS_NEVER_CALLED, get_command()))
.build()
.unwrap();