Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
charles-cooper committed Feb 14, 2024
1 parent 680895b commit 4dddf63
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tests/unitary/test_import_overloading.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import pytest
import sys
import contextlib
import os
import sys

from boa.interpret import VyperDeployer


@contextlib.contextmanager
def mock_sys_path(path):
anchor = sys.path
Expand All @@ -14,6 +14,7 @@ def mock_sys_path(path):
finally:
sys.path = anchor


@contextlib.contextmanager
def workdir(path):
tmp = os.getcwd()
Expand All @@ -24,6 +25,7 @@ def workdir(path):
finally:
os.chdir(tmp)


def test_imports(tmp_path):
code = """
totalSupply: public(uint256)
Expand All @@ -50,5 +52,6 @@ def __init__(initial_supply: uint256):
assert contract.totalSupply() == 100

from foo import bar as baz

assert isinstance(baz, VyperDeployer)
assert baz is bar

0 comments on commit 4dddf63

Please # to comment.