frame-support-test: migrate tests from decl_* macros to the new pallet macros (#12445)

* frame-support: migrate some tests from decl macros to new pallet attribute macros

* Remove useless type alias

* Remove useless type alias

* frame-support-test: migrate old decl_macros to new pallet attribute macros

* fmt

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

* Fix tests

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

* Fix features

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

* Remove deprecated stuff

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

* Update UI tests

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

* Fix UI test

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

* Fix test

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

* Update UI tests

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

* Cleanup

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

---------

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
Co-authored-by: parity-processbot <>
This commit is contained in:
authored and GitHub committed 2023-05-09 09:22:55 +00:00
1 parent 1d42bdf664
commit dcc0858f67
41 files changed
+1139 -2988

No files matched your search

@@ -15,7 +15,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//! Testing pallet macro
//! A basic pallet that can be used to test `construct_runtime!`.
// Ensure docs are propagated properly by the macros.
#![warn(missing_docs)]
@@ -24,10 +24,7 @@ pub use pallet::*;
#[frame_support::pallet]
pub mod pallet {
#[allow(unused_imports)]
use frame_support::pallet_prelude::*;
#[allow(unused_imports)]
use frame_system::pallet_prelude::*;
#[pallet::pallet]
pub struct Pallet<T>(_);
@@ -37,7 +34,7 @@ pub mod pallet {
/// I'm the documentation
#[pallet::storage]
pub type Value<T> = StorageValue<Value = u32>;
pub type Value<T> = StorageValue<_, u32>;
#[pallet::genesis_config]
#[cfg_attr(feature = "std", derive(Default))]