mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2025-01-03 09:19:22 +00:00
disabled unused/broken tests
This commit is contained in:
parent
758c3def5f
commit
df4c206e27
13 changed files with 7154 additions and 7209 deletions
|
@ -1,5 +1,4 @@
|
|||
import 'package:mockito/annotations.dart';
|
||||
import 'package:stackwallet/services/coins/bitcoin/bitcoin_wallet.dart';
|
||||
import 'package:stackwallet/services/coins/coin_service.dart';
|
||||
import 'package:stackwallet/services/locale_service.dart';
|
||||
import 'package:stackwallet/services/node_service.dart';
|
||||
|
@ -12,7 +11,6 @@ import 'package:stackwallet/utilities/prefs.dart';
|
|||
Wallets,
|
||||
WalletsService,
|
||||
NodeService,
|
||||
BitcoinWallet,
|
||||
LocaleService,
|
||||
ThemeService,
|
||||
Prefs,
|
||||
|
|
|
@ -14,7 +14,6 @@ import 'package:mockito/annotations.dart';
|
|||
// import 'package:stackwallet/pages/address_book_view/subviews/address_book_entry_details_view.dart';
|
||||
import 'package:stackwallet/services/address_book_service.dart';
|
||||
import 'package:stackwallet/services/locale_service.dart';
|
||||
import 'package:stackwallet/services/notes_service.dart';
|
||||
// import 'package:stackwallet/utilities/clipboard_interface.dart';
|
||||
// import 'package:stackwallet/widgets/custom_buttons/gradient_button.dart';
|
||||
// import 'package:stackwallet/widgets/transaction_card.dart';
|
||||
|
@ -25,7 +24,6 @@ import 'package:stackwallet/services/notes_service.dart';
|
|||
|
||||
@GenerateMocks([], customMocks: [
|
||||
MockSpec<AddressBookService>(returnNullOnMissingStub: true),
|
||||
MockSpec<NotesService>(returnNullOnMissingStub: true),
|
||||
MockSpec<LocaleService>(returnNullOnMissingStub: true),
|
||||
])
|
||||
void main() {
|
||||
|
|
|
@ -7,7 +7,6 @@ import 'package:mockito/annotations.dart';
|
|||
// import 'package:stackwallet/pages/main_view.dart';
|
||||
|
||||
import 'package:stackwallet/services/locale_service.dart';
|
||||
import 'package:stackwallet/services/notes_service.dart';
|
||||
import 'package:stackwallet/services/wallets_service.dart';
|
||||
// import 'package:provider/provider.dart';
|
||||
//
|
||||
|
@ -16,7 +15,6 @@ import 'package:stackwallet/services/wallets_service.dart';
|
|||
|
||||
@GenerateMocks([], customMocks: [
|
||||
MockSpec<WalletsService>(returnNullOnMissingStub: true),
|
||||
MockSpec<NotesService>(returnNullOnMissingStub: true),
|
||||
MockSpec<LocaleService>(returnNullOnMissingStub: true),
|
||||
])
|
||||
void main() {
|
||||
|
|
|
@ -9,7 +9,6 @@ import 'package:mockito/annotations.dart';
|
|||
// import 'package:stackwallet/services/event_bus/events/node_connection_status_changed_event.dart';
|
||||
// import 'package:stackwallet/services/event_bus/global_event_bus.dart';
|
||||
import 'package:stackwallet/services/locale_service.dart';
|
||||
import 'package:stackwallet/services/notes_service.dart';
|
||||
import 'package:stackwallet/services/wallets_service.dart';
|
||||
// import 'package:provider/provider.dart';
|
||||
//
|
||||
|
@ -18,7 +17,6 @@ import 'package:stackwallet/services/wallets_service.dart';
|
|||
|
||||
@GenerateMocks([], customMocks: [
|
||||
MockSpec<WalletsService>(returnNullOnMissingStub: true),
|
||||
MockSpec<NotesService>(returnNullOnMissingStub: true),
|
||||
MockSpec<LocaleService>(returnNullOnMissingStub: true),
|
||||
])
|
||||
void main() {
|
||||
|
|
|
@ -7,7 +7,6 @@ import 'package:mockito/annotations.dart';
|
|||
// import 'package:stackwallet/pages/main_view.dart';
|
||||
|
||||
import 'package:stackwallet/services/locale_service.dart';
|
||||
import 'package:stackwallet/services/notes_service.dart';
|
||||
import 'package:stackwallet/services/wallets_service.dart';
|
||||
// import 'package:provider/provider.dart';
|
||||
//
|
||||
|
@ -16,7 +15,6 @@ import 'package:stackwallet/services/wallets_service.dart';
|
|||
|
||||
@GenerateMocks([], customMocks: [
|
||||
MockSpec<WalletsService>(returnNullOnMissingStub: true),
|
||||
MockSpec<NotesService>(returnNullOnMissingStub: true),
|
||||
MockSpec<LocaleService>(returnNullOnMissingStub: true),
|
||||
])
|
||||
void main() {
|
||||
|
|
|
@ -8,7 +8,6 @@ import 'package:mockito/annotations.dart';
|
|||
// import 'package:stackwallet/pages/transaction_subviews/transaction_details_view.dart';
|
||||
import 'package:stackwallet/services/address_book_service.dart';
|
||||
import 'package:stackwallet/services/locale_service.dart';
|
||||
import 'package:stackwallet/services/notes_service.dart';
|
||||
// import 'package:stackwallet/utilities/shared_utilities.dart';
|
||||
// import 'package:stackwallet/widgets/custom_buttons/app_bar_icon_button.dart';
|
||||
// import 'package:provider/provider.dart';
|
||||
|
@ -16,7 +15,6 @@ import 'package:stackwallet/services/notes_service.dart';
|
|||
// import 'transaction_details_view_screen_test.mocks.dart';
|
||||
|
||||
@GenerateMocks([], customMocks: [
|
||||
MockSpec<NotesService>(returnNullOnMissingStub: true),
|
||||
MockSpec<AddressBookService>(returnNullOnMissingStub: true),
|
||||
MockSpec<LocaleService>(returnNullOnMissingStub: true),
|
||||
])
|
||||
|
|
|
@ -8,7 +8,6 @@ import 'package:mockito/annotations.dart';
|
|||
// import 'package:stackwallet/pages/transaction_subviews/transaction_search_results_view.dart';
|
||||
|
||||
import 'package:stackwallet/services/locale_service.dart';
|
||||
import 'package:stackwallet/services/notes_service.dart';
|
||||
// import 'package:stackwallet/widgets/custom_buttons/app_bar_icon_button.dart';
|
||||
// import 'package:stackwallet/widgets/transaction_card.dart';
|
||||
// import 'package:provider/provider.dart';
|
||||
|
@ -17,7 +16,6 @@ import 'package:stackwallet/services/notes_service.dart';
|
|||
// import 'transaction_search_results_view_screen_test.mocks.dart';
|
||||
|
||||
@GenerateMocks([], customMocks: [
|
||||
MockSpec<NotesService>(returnNullOnMissingStub: true),
|
||||
MockSpec<LocaleService>(returnNullOnMissingStub: true),
|
||||
])
|
||||
void main() {
|
||||
|
|
|
@ -6,7 +6,6 @@ import 'package:mockito/annotations.dart';
|
|||
// import 'package:mockito/mockito.dart';
|
||||
// import 'package:stackwallet/pages/transaction_subviews/transaction_search_view.dart';
|
||||
import 'package:stackwallet/services/address_book_service.dart';
|
||||
import 'package:stackwallet/services/notes_service.dart';
|
||||
// import 'package:stackwallet/widgets/custom_buttons/app_bar_icon_button.dart';
|
||||
// import 'package:stackwallet/widgets/custom_buttons/gradient_button.dart';
|
||||
// import 'package:stackwallet/widgets/custom_buttons/simple_button.dart';
|
||||
|
@ -16,7 +15,6 @@ import 'package:stackwallet/services/notes_service.dart';
|
|||
|
||||
@GenerateMocks([], customMocks: [
|
||||
MockSpec<AddressBookService>(returnNullOnMissingStub: true),
|
||||
MockSpec<NotesService>(returnNullOnMissingStub: true),
|
||||
])
|
||||
void main() {
|
||||
// testWidgets("TransactionSearchView builds correctly", (tester) async {
|
||||
|
|
|
@ -7,7 +7,6 @@ import 'package:mockito/annotations.dart';
|
|||
// import 'package:stackwallet/notifications/campfire_alert.dart';
|
||||
// import 'package:stackwallet/pages/wallet_view/confirm_send_view.dart';
|
||||
|
||||
import 'package:stackwallet/services/notes_service.dart';
|
||||
// import 'package:stackwallet/utilities/flutter_secure_storage_interface.dart';
|
||||
// import 'package:stackwallet/widgets/custom_buttons/gradient_button.dart';
|
||||
// import 'package:stackwallet/widgets/custom_pin_put/custom_pin_put.dart';
|
||||
|
@ -16,9 +15,7 @@ import 'package:stackwallet/services/notes_service.dart';
|
|||
//
|
||||
// import 'confirm_send_view_screen_test.mocks.dart';
|
||||
|
||||
@GenerateMocks([], customMocks: [
|
||||
MockSpec<NotesService>(returnNullOnMissingStub: true),
|
||||
])
|
||||
@GenerateMocks([], customMocks: [])
|
||||
void main() {
|
||||
// testWidgets("ConfirmSendView builds correctly", (tester) async {
|
||||
// final wallet = MockManager();
|
||||
|
|
|
@ -11,7 +11,6 @@ import 'package:mockito/annotations.dart';
|
|||
// import 'package:stackwallet/notifications/campfire_alert.dart';
|
||||
// import 'package:stackwallet/pages/wallet_view/send_view.dart';
|
||||
|
||||
import 'package:stackwallet/services/notes_service.dart';
|
||||
import 'package:stackwallet/utilities/barcode_scanner_interface.dart';
|
||||
// import 'package:stackwallet/utilities/clipboard_interface.dart';
|
||||
// import 'package:stackwallet/widgets/amount_input_field.dart';
|
||||
|
@ -21,11 +20,7 @@ import 'package:stackwallet/utilities/barcode_scanner_interface.dart';
|
|||
//
|
||||
// import 'send_view_screen_test.mocks.dart';
|
||||
|
||||
@GenerateMocks([
|
||||
BarcodeScannerWrapper
|
||||
], customMocks: [
|
||||
MockSpec<NotesService>(returnNullOnMissingStub: true),
|
||||
])
|
||||
@GenerateMocks([BarcodeScannerWrapper], customMocks: [])
|
||||
void main() {
|
||||
// testWidgets("SendView builds correctly", (tester) async {
|
||||
// final wallet = MockManager();
|
||||
|
|
|
@ -13,7 +13,6 @@ import 'package:mockito/annotations.dart';
|
|||
// import 'package:stackwallet/services/event_bus/events/node_connection_status_changed_event.dart';
|
||||
// import 'package:stackwallet/services/event_bus/global_event_bus.dart';
|
||||
import 'package:stackwallet/services/locale_service.dart';
|
||||
import 'package:stackwallet/services/notes_service.dart';
|
||||
// import 'package:stackwallet/widgets/custom_buttons/draggable_switch_button.dart';
|
||||
// import 'package:stackwallet/widgets/gradient_card.dart';
|
||||
// import 'package:stackwallet/widgets/transaction_card.dart';
|
||||
|
@ -23,7 +22,6 @@ import 'package:stackwallet/services/notes_service.dart';
|
|||
// import 'wallet_view_screen_test.mocks.dart';
|
||||
|
||||
@GenerateMocks([], customMocks: [
|
||||
MockSpec<NotesService>(returnNullOnMissingStub: true),
|
||||
MockSpec<LocaleService>(returnNullOnMissingStub: true),
|
||||
])
|
||||
void main() {
|
||||
|
|
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue