remove unused imports in tests/ (#3713)

This commit is contained in:
tersec 2022-06-07 17:05:06 +00:00 committed by GitHub
parent 72a46bd520
commit a07d14cd99
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
24 changed files with 33 additions and 48 deletions

View File

@ -8,7 +8,6 @@
# All tests except scenarios, which as compiled separately for mainnet and minimal
import
chronicles,
./testutil
import # Unit test

View File

@ -7,9 +7,6 @@
{.used.}
import
chronicles
import
./test_fixture_fork,
./test_fixture_merkle_single_proof,

View File

@ -1,5 +1,5 @@
# beacon_chain
# Copyright (c) 2020-2021 Status Research & Development GmbH
# Copyright (c) 2020-2022 Status Research & Development GmbH
# Licensed and distributed under either of
# * MIT license (license terms in the root directory or at https://opensource.org/licenses/MIT).
# * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0).
@ -9,9 +9,7 @@
import
# Standard library
os,
# Utilities
stew/results,
std/os,
# Beacon chain internals
../../beacon_chain/spec/[beaconstate, validator, helpers, state_transition_epoch],
../../beacon_chain/spec/datatypes/altair,

View File

@ -8,7 +8,6 @@
{.used.}
import
chronicles,
# Standard library
os, strutils,
# Beacon chain internals

View File

@ -12,7 +12,6 @@ import
# Standard library
os, sequtils,
# Status internal
chronicles,
faststreams, streams,
# Beacon chain internals
../../../beacon_chain/spec/[state_transition, forks, helpers],

View File

@ -1,5 +1,5 @@
# beacon_chain
# Copyright (c) 2020-2021 Status Research & Development GmbH
# Copyright (c) 2020-2022 Status Research & Development GmbH
# Licensed and distributed under either of
# * MIT license (license terms in the root directory or at https://opensource.org/licenses/MIT).
# * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0).
@ -9,9 +9,7 @@
import
# Standard library
os,
# Utilities
stew/results,
std/os,
# Beacon chain internals
../../beacon_chain/spec/[beaconstate, validator, helpers, state_transition_epoch],
../../beacon_chain/spec/datatypes/[altair, bellatrix],

View File

@ -12,7 +12,6 @@ import
# Standard library
std/[os, sequtils, strutils],
# Status internal
chronicles,
faststreams, streams,
# Beacon chain internals
../../../beacon_chain/spec/[state_transition, forks, helpers],

View File

@ -1,5 +1,5 @@
# beacon_chain
# Copyright (c) 2020-2021 Status Research & Development GmbH
# Copyright (c) 2020-2022 Status Research & Development GmbH
# Licensed and distributed under either of
# * MIT license (license terms in the root directory or at https://opensource.org/licenses/MIT).
# * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0).
@ -9,9 +9,7 @@
import
# Standard library
os,
# Utilities
stew/results,
std/os,
# Beacon chain internals
../../beacon_chain/spec/[validator, helpers, state_transition_epoch],
../../beacon_chain/spec/datatypes/phase0,

View File

@ -1,5 +1,5 @@
# Nimbus
# Copyright (c) 2018-2021 Status Research & Development GmbH
# Copyright (c) 2018-2022 Status Research & Development GmbH
# Licensed under either of
# * Apache License, version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or https://www.apache.org/licenses/LICENSE-2.0)
# * MIT license ([LICENSE-MIT](LICENSE-MIT) or https://opensource.org/licenses/MIT)
@ -9,10 +9,9 @@
import
# Standard library
std/[os],
std/os,
# Status lib
stew/[results, byteutils],
nimcrypto/utils,
chronicles,
# Internal
../../beacon_chain/validators/[slashing_protection, slashing_protection_v2],
@ -264,4 +263,4 @@ suite "Slashing Interchange tests " & preset():
# rather than also checking the actual signing_root
skip()
else:
runTest(path)
runTest(path)

View File

@ -1,5 +1,5 @@
# beacon_chain
# Copyright (c) 2018-2021 Status Research & Development GmbH
# Copyright (c) 2018-2022 Status Research & Development GmbH
# Licensed and distributed under either of
# * MIT license (license terms in the root directory or at https://opensource.org/licenses/MIT).
# * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0).
@ -7,7 +7,7 @@
import
# Standard library
strformat, tables,
std/strformat,
# Specs
../../beacon_chain/spec/datatypes/phase0,
../../beacon_chain/spec/[beaconstate, validator, helpers],

View File

@ -1,5 +1,5 @@
# beacon_chain
# Copyright (c) 2018-2021 Status Research & Development GmbH
# Copyright (c) 2018-2022 Status Research & Development GmbH
# Licensed and distributed under either of
# * MIT license (license terms in the root directory or at https://opensource.org/licenses/MIT).
# * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0).
@ -8,7 +8,6 @@
{.used.}
import
chronicles,
unittest2,
../beacon_chain/consensus_object_pools/block_dag

View File

@ -1,5 +1,5 @@
# beacon_chain
# Copyright (c) 2018-2021 Status Research & Development GmbH
# Copyright (c) 2018-2022 Status Research & Development GmbH
# Licensed and distributed under either of
# * MIT license (license terms in the root directory or at https://opensource.org/licenses/MIT).
# * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0).
@ -8,7 +8,7 @@
{.used.}
import
chronicles, chronos,
chronos,
std/[options, sequtils],
unittest2,
eth/keys, taskpools,

View File

@ -8,7 +8,6 @@
{.used.}
import
chronicles,
unittest2,
../beacon_chain/spec/forks,
../beacon_chain/spec/datatypes/phase0,

View File

@ -8,9 +8,7 @@
{.used.}
import
chronicles,
unittest2,
stew/assign2,
eth/keys, taskpools,
../beacon_chain/spec/datatypes/base,
../beacon_chain/spec/[beaconstate, forks, helpers, signatures, state_transition],

View File

@ -8,7 +8,7 @@
{.used.}
import
std/[json, options, sequtils],
std/[json, sequtils],
unittest2,
../beacon_chain/spec/engine_authentication

View File

@ -1,5 +1,5 @@
# beacon_chain
# Copyright (c) 2020 Status Research & Development GmbH
# Copyright (c) 2020-2022 Status Research & Development GmbH
# Licensed and distributed under either of
# * MIT license (license terms in the root directory or at https://opensource.org/licenses/MIT).
# * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0).
@ -7,8 +7,7 @@
{.used.}
import chronicles, chronos
import eth/keys
import chronos
import ../beacon_chain/spec/[datatypes/base, forks, presets]
import ../beacon_chain/consensus_object_pools/[
block_quarantine, blockchain_dag, exit_pool]

View File

@ -12,12 +12,12 @@ import
std/sequtils,
# Status lib
unittest2,
chronicles, chronos,
chronos,
eth/keys, taskpools,
# Internal
../beacon_chain/[beacon_clock],
../beacon_chain/gossip_processing/[gossip_validation, batch_validation],
../beacon_chain/fork_choice/[fork_choice_types, fork_choice],
../beacon_chain/fork_choice/fork_choice,
../beacon_chain/consensus_object_pools/[
block_quarantine, blockchain_dag, block_clearance, attestation_pool,
sync_committee_msg_pool],

View File

@ -1,7 +1,14 @@
# beacon_chain
# Copyright (c) 2022 Status Research & Development GmbH
# Licensed and distributed under either of
# * MIT license (license terms in the root directory or at https://opensource.org/licenses/MIT).
# * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0).
# at your option. This file may not be copied, modified, or distributed except according to those terms.
{.used.}
import
std/[json, typetraits, sequtils],
std/[typetraits, sequtils],
unittest2, eth/keys, stew/byteutils,
../beacon_chain/spec/[crypto, keystore],
./testutil

View File

@ -11,7 +11,7 @@ import
std/[typetraits, os, options, json, sequtils, uri, algorithm],
testutils/unittests, chronicles, stint, json_serialization, confutils,
chronos, eth/keys, blscurve, libp2p/crypto/crypto as lcrypto,
stew/[byteutils, io2], stew/shims/net, nimcrypto/utils,
stew/[byteutils, io2], stew/shims/net,
../beacon_chain/spec/[crypto, keystore, eth2_merkleization],
../beacon_chain/spec/datatypes/base,

View File

@ -12,7 +12,6 @@ import
unittest2,
stew/byteutils, blscurve, eth/keys, json_serialization,
libp2p/crypto/crypto as lcrypto,
nimcrypto/utils as ncrutils,
../beacon_chain/spec/[crypto, keystore],
./testutil

View File

@ -10,11 +10,10 @@
import
std/[os, options, json, typetraits, uri, algorithm],
unittest2, chronos, chronicles, stint, json_serialization,
blscurve, eth/keys, nimcrypto/utils,
blscurve, eth/keys,
libp2p/crypto/crypto as lcrypto,
stew/[io2, byteutils],
../beacon_chain/filepath,
../beacon_chain/networking/network_metadata,
../beacon_chain/spec/eth2_merkleization,
../beacon_chain/spec/datatypes/base,
../beacon_chain/spec/[crypto, keystore],

View File

@ -12,7 +12,7 @@
import
# Status libraries
chronicles, eth/keys, stew/objects, taskpools,
eth/keys, stew/objects, taskpools,
# Beacon chain internals
../beacon_chain/consensus_object_pools/
[block_clearance, block_quarantine, blockchain_dag],

View File

@ -8,10 +8,9 @@
{.used.}
import
std/[json, typetraits],
std/typetraits,
unittest2, json_serialization,
blscurve, eth/keys, libp2p/crypto/crypto as lcrypto,
nimcrypto/utils as ncrutils,
blscurve,
../beacon_chain/spec/[crypto, keystore],
./testutil

View File

@ -8,7 +8,7 @@
{.push raises: [Defect].}
import
options, stew/endians2,
std/options,
./mocking/mock_deposits,
./helpers/math_helpers,
../beacon_chain/spec/[