From d64c50ade7807ab5f11f38275be50338583a5167 Mon Sep 17 00:00:00 2001 From: Krayt78 Date: Thu, 5 Dec 2024 19:42:23 +0100 Subject: [PATCH] fmt --- polkadot/runtime/common/src/auctions/mock.rs | 3 ++- polkadot/runtime/common/src/auctions/tests.rs | 13 ++++--------- 2 files changed, 6 insertions(+), 10 deletions(-) diff --git a/polkadot/runtime/common/src/auctions/mock.rs b/polkadot/runtime/common/src/auctions/mock.rs index e5a385dfcd4f7..9fe19e579cfa2 100644 --- a/polkadot/runtime/common/src/auctions/mock.rs +++ b/polkadot/runtime/common/src/auctions/mock.rs @@ -16,6 +16,7 @@ //! Mocking utilities for testing in auctions pallet. +#[cfg(test)] use super::*; use crate::{auctions, mock::TestRegistrar}; use frame_support::{ @@ -254,4 +255,4 @@ pub fn run_to_block(n: BlockNumber) { Balances::on_initialize(System::block_number()); Auctions::on_initialize(System::block_number()); } -} \ No newline at end of file +} diff --git a/polkadot/runtime/common/src/auctions/tests.rs b/polkadot/runtime/common/src/auctions/tests.rs index c936928ca08c4..3455a73c03708 100644 --- a/polkadot/runtime/common/src/auctions/tests.rs +++ b/polkadot/runtime/common/src/auctions/tests.rs @@ -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() {