Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
Krayt78 committed Dec 5, 2024
1 parent cd2372b commit d64c50a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
3 changes: 2 additions & 1 deletion polkadot/runtime/common/src/auctions/mock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

//! Mocking utilities for testing in auctions pallet.
#[cfg(test)]
use super::*;
use crate::{auctions, mock::TestRegistrar};
use frame_support::{
Expand Down Expand Up @@ -254,4 +255,4 @@ pub fn run_to_block(n: BlockNumber) {
Balances::on_initialize(System::block_number());
Auctions::on_initialize(System::block_number());
}
}
}
13 changes: 4 additions & 9 deletions polkadot/runtime/common/src/auctions/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,13 @@
#[cfg(test)]
use super::*;
use frame_support::{
assert_noop, assert_ok, assert_storage_noop,
};
use crate::{auctions::mock::*, mock::TestRegistrar};
use frame_support::{assert_noop, assert_ok, assert_storage_noop};
use pallet_balances;
use polkadot_primitives::{Id as ParaId};
use polkadot_primitives::Id as ParaId;
use polkadot_primitives_test_helpers::{dummy_hash, dummy_head_data, dummy_validation_code};
use sp_core::H256;
use sp_runtime::{
DispatchError::BadOrigin,
};
use crate::{mock::TestRegistrar, auctions::mock::*};
//{new_test_ext, run_to_block, set_last_random, leases, TestLeaser, RuntimeOrigin, Test, Auctions, BalanceOf, Balances};
use sp_runtime::DispatchError::BadOrigin;

#[test]
fn basic_setup_works() {
Expand Down

0 comments on commit d64c50a

Please sign in to comment.