Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeshultz committed Sep 12, 2020
1 parent 33cd572 commit e01602d
Show file tree
Hide file tree
Showing 3 changed files with 78 additions and 78 deletions.
4 changes: 2 additions & 2 deletions solidbyte/compile/compiler.py
Expand Up @@ -146,8 +146,8 @@ def compile(self, filename):
p_abi.wait()

# Check the output
p_bin_out = p_bin.stdout.read()
p_abi_out = p_abi.stdout.read()
# p_bin_out = p_bin.stdout.read()
# p_abi_out = p_abi.stdout.read()
# solc version differences?
# if (
# b'Compiler run successful' not in p_bin_out
Expand Down
2 changes: 1 addition & 1 deletion solidbyte/deploy/objects.py
Expand Up @@ -289,7 +289,7 @@ def abi(self) -> Optional[List[Dict[str, T]]]:
return self.deployments[-1].abi

@property
def bytecode_hash(self)-> Optional[str]:
def bytecode_hash(self) -> Optional[str]:
""" The latest deployed bytecode hash """
if len(self.deployments) < 1:
return None
Expand Down
150 changes: 75 additions & 75 deletions tests/test_cli.py
Expand Up @@ -312,30 +312,30 @@ def test_cli_stateless_deploy(sb, mock_project):

with mock_project() as mock:

TMP_KEY_DIR = mock.paths.project.joinpath('test-keys')
TMP_KEY_DIR = mock.paths.project.joinpath('test-keys')

# test `sb accounts create --default
execute_command_assert_no_error_success([
*sb,
'-k',
str(TMP_KEY_DIR),
'accounts',
'create',
'--default',
'-p',
PASSWORD_1,
])
# test `sb accounts create --default
execute_command_assert_no_error_success([
*sb,
'-k',
str(TMP_KEY_DIR),
'accounts',
'create',
'--default',
'-p',
PASSWORD_1,
])

# test `sb deploy [network]`
execute_command_assert_no_error_success([
*sb,
'-k',
str(TMP_KEY_DIR),
'deploy',
NETWORK_NAME,
'-p',
PASSWORD_1,
])
# test `sb deploy [network]`
execute_command_assert_no_error_success([
*sb,
'-k',
str(TMP_KEY_DIR),
'deploy',
NETWORK_NAME,
'-p',
PASSWORD_1,
])


@pytest.mark.parametrize("sb", [
Expand All @@ -346,30 +346,30 @@ def test_cli_stateless_test(sb, mock_project):

with mock_project() as mock:

TMP_KEY_DIR = mock.paths.project.joinpath('test-keys')
TMP_KEY_DIR = mock.paths.project.joinpath('test-keys')

# test `sb accounts create --default
execute_command_assert_no_error_success([
*sb,
'-k',
str(TMP_KEY_DIR),
'accounts',
'create',
'--default',
'-p',
PASSWORD_1,
])
# test `sb accounts create --default
execute_command_assert_no_error_success([
*sb,
'-k',
str(TMP_KEY_DIR),
'accounts',
'create',
'--default',
'-p',
PASSWORD_1,
])

# test `sb deploy [network]`
execute_command_assert_no_error_success([
*sb,
'-k',
str(TMP_KEY_DIR),
'test',
NETWORK_NAME,
'-p',
PASSWORD_1,
])
# test `sb deploy [network]`
execute_command_assert_no_error_success([
*sb,
'-k',
str(TMP_KEY_DIR),
'test',
NETWORK_NAME,
'-p',
PASSWORD_1,
])


@pytest.mark.parametrize("sb", [
Expand All @@ -380,40 +380,40 @@ def test_cli_stateless_erc20(sb, temp_dir):

with temp_dir() as workdir:

TMP_KEY_DIR = workdir.joinpath('test-keys')
TMP_KEY_DIR = workdir.joinpath('test-keys')

# test `sb accounts create --default
execute_command_assert_no_error_success([
*sb,
'-k',
str(TMP_KEY_DIR),
'accounts',
'create',
'--default',
'-p',
PASSWORD_1,
])
# test `sb accounts create --default
execute_command_assert_no_error_success([
*sb,
'-k',
str(TMP_KEY_DIR),
'accounts',
'create',
'--default',
'-p',
PASSWORD_1,
])

# test `sb init -t [template]`
execute_command_assert_no_error_success([
*sb,
'-k',
str(TMP_KEY_DIR),
'init',
'-t',
'erc20'
])
# test `sb init -t [template]`
execute_command_assert_no_error_success([
*sb,
'-k',
str(TMP_KEY_DIR),
'init',
'-t',
'erc20'
])

# test `sb test [network]`
execute_command_assert_no_error_success([
*sb,
'-k',
str(TMP_KEY_DIR),
'test',
NETWORK_NAME,
'-p',
PASSWORD_1,
])
# test `sb test [network]`
execute_command_assert_no_error_success([
*sb,
'-k',
str(TMP_KEY_DIR),
'test',
NETWORK_NAME,
'-p',
PASSWORD_1,
])


@pytest.mark.parametrize("sb", [
Expand Down

0 comments on commit e01602d

Please sign in to comment.