mirror of
https://github.com/bigchaindb/bigchaindb.git
synced 2024-10-13 13:34:05 +00:00
Move func definition after imports
This commit is contained in:
parent
dea2df9db0
commit
989a943fea
@ -103,12 +103,12 @@ def test_start_raises_if_no_arguments_given():
|
|||||||
|
|
||||||
@patch('multiprocessing.cpu_count', return_value=42)
|
@patch('multiprocessing.cpu_count', return_value=42)
|
||||||
def test_start_sets_multiprocess_var_based_on_cli_args(mock_cpu_count):
|
def test_start_sets_multiprocess_var_based_on_cli_args(mock_cpu_count):
|
||||||
def run_load(args):
|
|
||||||
return args
|
|
||||||
|
|
||||||
from bigchaindb.commands.bigchain import utils
|
from bigchaindb.commands.bigchain import utils
|
||||||
from bigchaindb.commands.bigchain import create_parser
|
from bigchaindb.commands.bigchain import create_parser
|
||||||
|
|
||||||
|
def run_load(args):
|
||||||
|
return args
|
||||||
|
|
||||||
parser = create_parser()
|
parser = create_parser()
|
||||||
|
|
||||||
assert utils.start(parser, ['load'], {'run_load': run_load}).multiprocess == 1
|
assert utils.start(parser, ['load'], {'run_load': run_load}).multiprocess == 1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user