Skip to content

Commit 9a0cb86

Browse files
committed
pylint
1 parent 138c32a commit 9a0cb86

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

tests/test_library_linking.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
Test library linking
33
"""
44
import re
5-
import pytest
65
from pathlib import Path
6+
import pytest
77
from crytic_compile.crytic_compile import CryticCompile
88

99
TEST_DIR = Path(__file__).resolve().parent
@@ -12,6 +12,7 @@
1212

1313

1414
def test_library_linking() -> None:
15+
"""Test that the placeholder is not present in the bytecode when the libraries are provided"""
1516
cc = CryticCompile(
1617
Path(TEST_DIR / "library_linking.sol").as_posix(),
1718
compile_libraries="(NeedsLinkingA, 0xdead),(NeedsLinkingB, 0x000000000000000000000000000000000000beef)",
@@ -25,7 +26,6 @@ def test_library_linking() -> None:
2526
len(re.findall(r"__.{36}__", source_unit.bytecode_runtime("TestLibraryLinking")))
2627
== 2
2728
)
28-
# Test that the placeholder is not present in the bytecode when the libraries are provided
2929
libraries = compilation_unit.crytic_compile.libraries
3030
assert (
3131
len(
@@ -46,8 +46,9 @@ def test_library_linking() -> None:
4646

4747

4848
def test_library_linking_validation() -> None:
49+
"""Test that invalid compile libraries argument raises an error"""
4950
with pytest.raises(ValueError):
50-
cc = CryticCompile(
51+
CryticCompile(
5152
Path(TEST_DIR / "library_linking.sol").as_posix(),
5253
compile_libraries="(NeedsLinkingA, 0x)",
5354
)

0 commit comments

Comments
 (0)