remove unneeded PriceAPI mock generation for coin tests

This commit is contained in:
julian 2023-01-19 13:52:50 -06:00
parent 722a884553
commit ea68e811ec
6 changed files with 6 additions and 18 deletions

View file

@ -12,7 +12,6 @@ import 'package:stackwallet/hive/db.dart';
import 'package:stackwallet/models/isar/models/blockchain_data/utxo.dart'; import 'package:stackwallet/models/isar/models/blockchain_data/utxo.dart';
import 'package:stackwallet/models/paymint/fee_object_model.dart'; import 'package:stackwallet/models/paymint/fee_object_model.dart';
import 'package:stackwallet/services/coins/bitcoin/bitcoin_wallet.dart'; import 'package:stackwallet/services/coins/bitcoin/bitcoin_wallet.dart';
import 'package:stackwallet/services/price.dart';
import 'package:stackwallet/services/transaction_notification_tracker.dart'; import 'package:stackwallet/services/transaction_notification_tracker.dart';
import 'package:stackwallet/utilities/enums/coin_enum.dart'; import 'package:stackwallet/utilities/enums/coin_enum.dart';
import 'package:stackwallet/utilities/flutter_secure_storage_interface.dart'; import 'package:stackwallet/utilities/flutter_secure_storage_interface.dart';
@ -22,8 +21,7 @@ import 'bitcoin_transaction_data_samples.dart';
import 'bitcoin_wallet_test.mocks.dart'; import 'bitcoin_wallet_test.mocks.dart';
import 'bitcoin_wallet_test_parameters.dart'; import 'bitcoin_wallet_test_parameters.dart';
@GenerateMocks( @GenerateMocks([ElectrumX, CachedElectrumX, TransactionNotificationTracker])
[ElectrumX, CachedElectrumX, PriceAPI, TransactionNotificationTracker])
void main() async { void main() async {
await Isar.initializeIsarCore(download: true); await Isar.initializeIsarCore(download: true);

View file

@ -11,7 +11,6 @@ import 'package:stackwallet/hive/db.dart';
import 'package:stackwallet/models/isar/models/blockchain_data/utxo.dart'; import 'package:stackwallet/models/isar/models/blockchain_data/utxo.dart';
import 'package:stackwallet/models/paymint/fee_object_model.dart'; import 'package:stackwallet/models/paymint/fee_object_model.dart';
import 'package:stackwallet/services/coins/bitcoincash/bitcoincash_wallet.dart'; import 'package:stackwallet/services/coins/bitcoincash/bitcoincash_wallet.dart';
import 'package:stackwallet/services/price.dart';
import 'package:stackwallet/services/transaction_notification_tracker.dart'; import 'package:stackwallet/services/transaction_notification_tracker.dart';
import 'package:stackwallet/utilities/enums/coin_enum.dart'; import 'package:stackwallet/utilities/enums/coin_enum.dart';
import 'package:stackwallet/utilities/flutter_secure_storage_interface.dart'; import 'package:stackwallet/utilities/flutter_secure_storage_interface.dart';
@ -20,8 +19,7 @@ import 'bitcoincash_history_sample_data.dart';
import 'bitcoincash_wallet_test.mocks.dart'; import 'bitcoincash_wallet_test.mocks.dart';
import 'bitcoincash_wallet_test_parameters.dart'; import 'bitcoincash_wallet_test_parameters.dart';
@GenerateMocks( @GenerateMocks([ElectrumX, CachedElectrumX, TransactionNotificationTracker])
[ElectrumX, CachedElectrumX, PriceAPI, TransactionNotificationTracker])
void main() async { void main() async {
await Isar.initializeIsarCore(download: true); await Isar.initializeIsarCore(download: true);

View file

@ -11,7 +11,6 @@ import 'package:stackwallet/hive/db.dart';
import 'package:stackwallet/models/isar/models/blockchain_data/utxo.dart'; import 'package:stackwallet/models/isar/models/blockchain_data/utxo.dart';
import 'package:stackwallet/models/paymint/fee_object_model.dart'; import 'package:stackwallet/models/paymint/fee_object_model.dart';
import 'package:stackwallet/services/coins/dogecoin/dogecoin_wallet.dart'; import 'package:stackwallet/services/coins/dogecoin/dogecoin_wallet.dart';
import 'package:stackwallet/services/price.dart';
import 'package:stackwallet/services/transaction_notification_tracker.dart'; import 'package:stackwallet/services/transaction_notification_tracker.dart';
import 'package:stackwallet/utilities/enums/coin_enum.dart'; import 'package:stackwallet/utilities/enums/coin_enum.dart';
import 'package:stackwallet/utilities/flutter_secure_storage_interface.dart'; import 'package:stackwallet/utilities/flutter_secure_storage_interface.dart';
@ -20,8 +19,7 @@ import 'dogecoin_history_sample_data.dart';
import 'dogecoin_wallet_test.mocks.dart'; import 'dogecoin_wallet_test.mocks.dart';
import 'dogecoin_wallet_test_parameters.dart'; import 'dogecoin_wallet_test_parameters.dart';
@GenerateMocks( @GenerateMocks([ElectrumX, CachedElectrumX, TransactionNotificationTracker])
[ElectrumX, CachedElectrumX, PriceAPI, TransactionNotificationTracker])
void main() { void main() {
group("dogecoin constants", () { group("dogecoin constants", () {
test("dogecoin minimum confirmations", () async { test("dogecoin minimum confirmations", () async {

View file

@ -17,7 +17,6 @@ import 'package:stackwallet/models/lelantus_coin.dart';
import 'package:stackwallet/models/lelantus_fee_data.dart'; import 'package:stackwallet/models/lelantus_fee_data.dart';
import 'package:stackwallet/models/paymint/transactions_model.dart' as old; import 'package:stackwallet/models/paymint/transactions_model.dart' as old;
import 'package:stackwallet/services/coins/firo/firo_wallet.dart'; import 'package:stackwallet/services/coins/firo/firo_wallet.dart';
import 'package:stackwallet/services/price.dart';
import 'package:stackwallet/services/transaction_notification_tracker.dart'; import 'package:stackwallet/services/transaction_notification_tracker.dart';
import 'package:stackwallet/utilities/address_utils.dart'; import 'package:stackwallet/utilities/address_utils.dart';
import 'package:stackwallet/utilities/enums/coin_enum.dart'; import 'package:stackwallet/utilities/enums/coin_enum.dart';
@ -32,8 +31,7 @@ import 'sample_data/get_utxos_sample_data.dart';
import 'sample_data/gethistory_samples.dart'; import 'sample_data/gethistory_samples.dart';
import 'sample_data/transaction_data_samples.dart'; import 'sample_data/transaction_data_samples.dart';
@GenerateMocks( @GenerateMocks([ElectrumX, CachedElectrumX, TransactionNotificationTracker])
[ElectrumX, CachedElectrumX, PriceAPI, TransactionNotificationTracker])
void main() { void main() {
group("isolate functions", () { group("isolate functions", () {
test("isolateDerive", () async { test("isolateDerive", () async {

View file

@ -9,7 +9,6 @@ import 'package:stackwallet/electrumx_rpc/electrumx.dart';
import 'package:stackwallet/hive/db.dart'; import 'package:stackwallet/hive/db.dart';
import 'package:stackwallet/models/paymint/fee_object_model.dart'; import 'package:stackwallet/models/paymint/fee_object_model.dart';
import 'package:stackwallet/services/coins/namecoin/namecoin_wallet.dart'; import 'package:stackwallet/services/coins/namecoin/namecoin_wallet.dart';
import 'package:stackwallet/services/price.dart';
import 'package:stackwallet/services/transaction_notification_tracker.dart'; import 'package:stackwallet/services/transaction_notification_tracker.dart';
import 'package:stackwallet/utilities/enums/coin_enum.dart'; import 'package:stackwallet/utilities/enums/coin_enum.dart';
import 'package:stackwallet/utilities/flutter_secure_storage_interface.dart'; import 'package:stackwallet/utilities/flutter_secure_storage_interface.dart';
@ -19,8 +18,7 @@ import 'namecoin_transaction_data_samples.dart';
import 'namecoin_wallet_test.mocks.dart'; import 'namecoin_wallet_test.mocks.dart';
import 'namecoin_wallet_test_parameters.dart'; import 'namecoin_wallet_test_parameters.dart';
@GenerateMocks( @GenerateMocks([ElectrumX, CachedElectrumX, TransactionNotificationTracker])
[ElectrumX, CachedElectrumX, PriceAPI, TransactionNotificationTracker])
void main() { void main() {
group("namecoin constants", () { group("namecoin constants", () {
test("namecoin minimum confirmations", () async { test("namecoin minimum confirmations", () async {

View file

@ -8,7 +8,6 @@ import 'package:stackwallet/electrumx_rpc/cached_electrumx.dart';
import 'package:stackwallet/electrumx_rpc/electrumx.dart'; import 'package:stackwallet/electrumx_rpc/electrumx.dart';
import 'package:stackwallet/models/paymint/fee_object_model.dart'; import 'package:stackwallet/models/paymint/fee_object_model.dart';
import 'package:stackwallet/services/coins/particl/particl_wallet.dart'; import 'package:stackwallet/services/coins/particl/particl_wallet.dart';
import 'package:stackwallet/services/price.dart';
import 'package:stackwallet/services/transaction_notification_tracker.dart'; import 'package:stackwallet/services/transaction_notification_tracker.dart';
import 'package:stackwallet/utilities/enums/coin_enum.dart'; import 'package:stackwallet/utilities/enums/coin_enum.dart';
import 'package:stackwallet/utilities/flutter_secure_storage_interface.dart'; import 'package:stackwallet/utilities/flutter_secure_storage_interface.dart';
@ -18,8 +17,7 @@ import 'particl_transaction_data_samples.dart';
import 'particl_wallet_test.mocks.dart'; import 'particl_wallet_test.mocks.dart';
import 'particl_wallet_test_parameters.dart'; import 'particl_wallet_test_parameters.dart';
@GenerateMocks( @GenerateMocks([ElectrumX, CachedElectrumX, TransactionNotificationTracker])
[ElectrumX, CachedElectrumX, PriceAPI, TransactionNotificationTracker])
void main() { void main() {
group("particl constants", () { group("particl constants", () {
test("particl minimum confirmations", () async { test("particl minimum confirmations", () async {