Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
RobertCraigie committed Nov 20, 2022
1 parent cc54c02 commit d8c5ab6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/test_node/test_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,8 @@ def test_update_path_env() -> None:
reason='Node is not installed globally',
)
def test_node_version(target: Target, fake_process: FakeProcess) -> None:
"""The node version can be detected properly and correctly constrained to our minimum required version"""

def _register_process(stdout: str) -> None:
# register the same process twice as we will call it twice
# in our assertions and fake_process consumes called processes
Expand Down Expand Up @@ -220,6 +222,7 @@ def _register_process(stdout: str) -> None:


def test_should_use_binary_unknown_target() -> None:
"""The UnknownTargetError() is raised by the _should_use_binary() function given an invalid target"""
with pytest.raises(node.UnknownTargetError):
node._should_use_binary(
target='foo', # type: ignore
Expand Down

0 comments on commit d8c5ab6

Please sign in to comment.