From f0ac7065ed32fcb6336544911c5604b8c69067c2 Mon Sep 17 00:00:00 2001 From: Mark Spanbroek Date: Wed, 21 Jun 2023 15:01:04 +0200 Subject: [PATCH] Move tests for JSON RPC provider into their own folder --- testmodule/{ => providers/jsonrpc}/testJsonRpcProvider.nim | 4 ++-- testmodule/{ => providers/jsonrpc}/testJsonRpcSigner.nim | 2 +- testmodule/providers/testJsonRpc.nim | 4 ++++ testmodule/test.nim | 3 +-- testmodule/testProviders.nim | 3 +++ 5 files changed, 11 insertions(+), 5 deletions(-) rename testmodule/{ => providers/jsonrpc}/testJsonRpcProvider.nim (99%) rename testmodule/{ => providers/jsonrpc}/testJsonRpcSigner.nim (99%) create mode 100644 testmodule/providers/testJsonRpc.nim create mode 100644 testmodule/testProviders.nim diff --git a/testmodule/testJsonRpcProvider.nim b/testmodule/providers/jsonrpc/testJsonRpcProvider.nim similarity index 99% rename from testmodule/testJsonRpcProvider.nim rename to testmodule/providers/jsonrpc/testJsonRpcProvider.nim index 3674c58..7715f5b 100644 --- a/testmodule/testJsonRpcProvider.nim +++ b/testmodule/providers/jsonrpc/testJsonRpcProvider.nim @@ -4,8 +4,8 @@ import pkg/chronos import pkg/ethers import pkg/ethers/providers/jsonrpc/conversions import pkg/stew/byteutils -import ./examples -import ./miner +import ../../examples +import ../../miner suite "JsonRpcProvider": diff --git a/testmodule/testJsonRpcSigner.nim b/testmodule/providers/jsonrpc/testJsonRpcSigner.nim similarity index 99% rename from testmodule/testJsonRpcSigner.nim rename to testmodule/providers/jsonrpc/testJsonRpcSigner.nim index 1c4415a..210e618 100644 --- a/testmodule/testJsonRpcSigner.nim +++ b/testmodule/providers/jsonrpc/testJsonRpcSigner.nim @@ -1,7 +1,7 @@ import pkg/asynctest import pkg/ethers import pkg/stew/byteutils -import ./examples +import ../../examples suite "JsonRpcSigner": diff --git a/testmodule/providers/testJsonRpc.nim b/testmodule/providers/testJsonRpc.nim new file mode 100644 index 0000000..4c7326e --- /dev/null +++ b/testmodule/providers/testJsonRpc.nim @@ -0,0 +1,4 @@ +import ./jsonrpc/testJsonRpcProvider +import ./jsonrpc/testJsonRpcSigner + +{.warning[UnusedImport]:off.} diff --git a/testmodule/test.nim b/testmodule/test.nim index a0e4174..4b10495 100644 --- a/testmodule/test.nim +++ b/testmodule/test.nim @@ -1,5 +1,4 @@ -import ./testJsonRpcProvider -import ./testJsonRpcSigner +import ./testProviders import ./testContracts import ./testReturns import ./testEnums diff --git a/testmodule/testProviders.nim b/testmodule/testProviders.nim new file mode 100644 index 0000000..7c7444f --- /dev/null +++ b/testmodule/testProviders.nim @@ -0,0 +1,3 @@ +import ./providers/testJsonRpc + +{.warning[UnusedImport]:off.}