Migrate more pallet tests to construct_runtime (#8051)

* Migrate bounties tests to use construct_runtime

* Migrate contracts tests to use construct_runtime

* Migrate democracy tests to use construct_runtime

* review: rename TreasuryEvent -> TreasuryError
This commit is contained in:
Andrew Jones
2021-02-04 16:34:15 +00:00
committed by GitHub
parent 86498a1a0c
commit e5ef38330d
4 changed files with 105 additions and 141 deletions
+2 -2
View File
@@ -772,7 +772,7 @@ fn deposit_event<T: Config>(
mod tests {
use super::*;
use crate::{
gas::GasMeter, tests::{ExtBuilder, Test, MetaEvent},
gas::GasMeter, tests::{ExtBuilder, Test, Event as MetaEvent},
gas::Gas,
storage::Storage,
tests::{
@@ -797,7 +797,7 @@ mod tests {
<frame_system::Module<Test>>::events()
.into_iter()
.filter_map(|meta| match meta.event {
MetaEvent::contracts(contract_event) => Some(contract_event),
MetaEvent::pallet_contracts(contract_event) => Some(contract_event),
_ => None,
})
.collect()