Skip to content

Commit

Permalink
Remove ambigous test
Browse files Browse the repository at this point in the history
This test had to access pallet_nfts storage which isn't allowed in tests. Test worked, but there was an error present.
  • Loading branch information
dudo50 committed Nov 19, 2024
1 parent 7452e54 commit 57a29b1
Showing 1 changed file with 0 additions and 25 deletions.
25 changes: 0 additions & 25 deletions templates/parachain/pallets/xcnft/src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1058,31 +1058,6 @@ fn try_parse_collection_metadata_successful() {
});
}

#[test]
fn try_parse_collection_owner_successful() {
ParaA::execute_with(|| {
testpara::System::set_block_number(2);

let def_config: CollectionConfigFor<Test> = CollectionConfigFor::<Test> {
settings: CollectionSettings::all_enabled(), // Default settings (all enabled)
max_supply: None, /* No maximum supply defined
* initially */
mint_settings: MintSettings::default(), // Use default mint settings
};

let _ = testpara::NFTs::create(testpara::RuntimeOrigin::signed(ALICE), ALICE, def_config);

pallet_nfts::OwnershipAcceptance::<Test>::insert(BOB, 0);

let _ =
testpara::XcNFT::parse_collection_owner(testpara::RuntimeOrigin::signed(ALICE), BOB, 0);

testpara::System::assert_has_event(testpara::RuntimeEvent::NFTs(
pallet_nfts::Event::OwnerChanged { collection: 0, new_owner: BOB },
));
});
}

#[test]
fn try_parse_nft_burn_successful() {
ParaA::execute_with(|| {
Expand Down

0 comments on commit 57a29b1

Please sign in to comment.