Skip to content

Commit 37784fc

Browse files
fix: install vtk-sdk package before using it
1 parent 85ca0b8 commit 37784fc

3 files changed

Lines changed: 8 additions & 2 deletions

File tree

.pre-commit-config.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ repos:
6060
args: []
6161
additional_dependencies:
6262
- pytest
63+
- virtualenv
6364

6465
- repo: https://github.com/codespell-project/codespell
6566
rev: "v2.2.6"

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ dependencies = []
3737
test = [
3838
"pytest >=6",
3939
"pytest-cov >=3",
40+
"virtualenv",
4041
]
4142
dev = [
4243
"pytest >=6",

tests/test_find_package.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
from typing import Literal, overload
88

99
import pytest
10-
import virtualenv as _virtualenv
10+
import virtualenv as _virtualenv # type: ignore[import-untyped]
1111

1212
DIR = Path(__file__).parent.resolve()
1313
BASE = DIR / "packages" / "find_package"
@@ -92,7 +92,11 @@ def virtualenv(tmp_path: Path) -> VEnv:
9292
return VEnv(path)
9393

9494

95+
ROOT = DIR.parent
96+
97+
9598
def test_find_package(virtualenv: VEnv):
99+
virtualenv.run("python", "-m", "pip", "install", str(ROOT))
96100
virtualenv.run(
97-
"python", "-m", "pip", "wheel", "--find-links", str(DIR.parent), str(BASE)
101+
"python", "-m", "pip", "install", "--find-links", str(ROOT), str(BASE)
98102
)

0 commit comments

Comments
 (0)