Skip to content

Commit

Permalink
test: update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
iamdefinitelyahuman committed Sep 13, 2020
1 parent 792ae37 commit 26e8456
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 13 deletions.
12 changes: 0 additions & 12 deletions tests/project/main/test_recompile.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,18 +109,6 @@ def test_modify_library(mockproject):
]


# modifying an interface should recompile a dependent contract
def test_modify_interface(mockproject):
code = INTERFACE.split("\n")
code[3] = ""
code = "\n".join(code)
with mockproject._path.joinpath("interfaces/IFoo.sol").open("w") as fp:
fp.write(code)

mockproject.load()
assert sorted(mockproject._compile.call_args[0][0]) == ["contracts/Foo.sol"]


# modifying a base contract should recompile a dependent
def test_modify_base(mockproject):
code = BASE_CONTRACT.split("\n")
Expand Down
2 changes: 1 addition & 1 deletion tests/project/test_sources.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def test_contract_interface_collisions(solc5source):


def test_get_path_list(sourceobj):
assert sourceobj.get_path_list() == ["interfaces/Baz.vy", "path/to/Foo.sol"]
assert sourceobj.get_path_list() == ["path/to/Foo.sol"]


def test_get_contract_list(sourceobj):
Expand Down

0 comments on commit 26e8456

Please sign in to comment.