From ba61b45a3c3a17434bb79bc0218b82bd56300b80 Mon Sep 17 00:00:00 2001 From: Jamie Date: Tue, 11 Apr 2023 07:21:03 +0800 Subject: [PATCH] Do not skip integration tests (#1068) * Do not skip integration tests Signed-off-by: Dengjianping * Fix clippy Signed-off-by: Dengjianping --------- Signed-off-by: Dengjianping --- .../integrations_mock/integration_tests.rs | 2 +- runtime/calamari/tests/mod.rs | 20 +++++++++++++++++++ runtime/calamari/tests/xcm_mock/xcm_tests.rs | 1 - 3 files changed, 21 insertions(+), 2 deletions(-) create mode 100644 runtime/calamari/tests/mod.rs diff --git a/runtime/calamari/tests/integrations_mock/integration_tests.rs b/runtime/calamari/tests/integrations_mock/integration_tests.rs index 8e7c81847..166cf411e 100644 --- a/runtime/calamari/tests/integrations_mock/integration_tests.rs +++ b/runtime/calamari/tests/integrations_mock/integration_tests.rs @@ -19,7 +19,7 @@ #![cfg(test)] #![allow(clippy::identity_op)] // keep e.g. 1 * DAYS for legibility -use super::{super::*, mock::*, *}; +use super::{mock::*, *}; pub use calamari_runtime::{ assets_config::{CalamariAssetConfig, CalamariConcreteFungibleLedger}, diff --git a/runtime/calamari/tests/mod.rs b/runtime/calamari/tests/mod.rs new file mode 100644 index 000000000..9fb1f4c97 --- /dev/null +++ b/runtime/calamari/tests/mod.rs @@ -0,0 +1,20 @@ +// Copyright 2020-2023 Manta Network. +// This file is part of Manta. +// +// Manta is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// Manta is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with Manta. If not, see . + +#![cfg(test)] + +pub mod integrations_mock; +pub mod xcm_mock; diff --git a/runtime/calamari/tests/xcm_mock/xcm_tests.rs b/runtime/calamari/tests/xcm_mock/xcm_tests.rs index 3edc4425f..c729ac68b 100644 --- a/runtime/calamari/tests/xcm_mock/xcm_tests.rs +++ b/runtime/calamari/tests/xcm_mock/xcm_tests.rs @@ -34,7 +34,6 @@ use xcm_executor::traits::{Convert, WeightBounds}; use xcm_simulator::TestExt; use super::{ - super::*, parachain::{ create_asset_location, create_asset_metadata, register_assets_on_parachain, AssetManager, ParaTokenPerSecond, XcmExecutorConfig as ParaXcmExecutorConfig, PALLET_ASSET_INDEX,