From 286eb4159f1e6399ed2f0a65c7341f354f39a053 Mon Sep 17 00:00:00 2001 From: Dusan Morhac <55763425+dudo50@users.noreply.github.com> Date: Mon, 4 Nov 2024 21:14:40 +0100 Subject: [PATCH] Update tests.rs --- .../parachain_two/pallets/xcnft/src/tests.rs | 22 ++----------------- 1 file changed, 2 insertions(+), 20 deletions(-) diff --git a/templates/parachain_two/pallets/xcnft/src/tests.rs b/templates/parachain_two/pallets/xcnft/src/tests.rs index cf47edea41b6..d1e4deff6060 100644 --- a/templates/parachain_two/pallets/xcnft/src/tests.rs +++ b/templates/parachain_two/pallets/xcnft/src/tests.rs @@ -7,11 +7,11 @@ pub mod testpara; pub mod testrelay; use frame_support::assert_noop; -use sp_runtime::{traits::Bounded, AccountId32, BoundedVec, BuildStorage}; +use sp_runtime::{AccountId32, BoundedVec, BuildStorage}; use cumulus_primitives_core::Parachain; use xcm_executor::traits::ConvertLocation; use xcm::prelude::*; -use crate::tests::testpara::XcNFT; +use pallet_uniques; pub const ALICE: AccountId32 = AccountId32::new([0u8; 32]); pub const BOB: AccountId32 = AccountId32::new([1u8; 32]); @@ -788,24 +788,6 @@ fn try_parse_collection_metadata_successful() { }); } -#[test] -fn try_parse_collection_owner_successful() { - ParaA::execute_with(|| { - testpara::System::set_block_number(2); - - let _ = testpara::NFTs::create(testpara::RuntimeOrigin::signed(ALICE), 0, ALICE); - - pallet_uniques::OwnershipAcceptance::::insert(BOB, 0); - - let _ = testpara::XcNFT::parse_collection_owner(testpara::RuntimeOrigin::signed(ALICE), BOB, 0); - - testpara::System::assert_has_event(testpara::RuntimeEvent::NFTs(pallet_uniques::Event::OwnerChanged { - collection: 0, - new_owner: BOB, - })); - }); -} - #[test] fn try_parse_nft_burn_successful() { ParaA::execute_with(|| {