disabled unused/broken tests

This commit is contained in:
julian 2023-11-09 11:40:13 -06:00
parent 758c3def5f
commit df4c206e27
13 changed files with 7154 additions and 7209 deletions

View file

@ -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,

View file

@ -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() {

View file

@ -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() {

View file

@ -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() {

View file

@ -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() {

View file

@ -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),
])

View file

@ -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() {

View file

@ -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 {

View file

@ -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();

View file

@ -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();

View file

@ -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