Skip to content

Commit 9b64414

Browse files
other(test): improve worker test coverage (#517)
1 parent f0dea04 commit 9b64414

9 files changed

Lines changed: 3718 additions & 32 deletions

File tree

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ ipython_config.py
8585
# pyenv
8686
# For a library or package, you might want to ignore these files since the code is
8787
# intended to run in multiple environments; otherwise, check them in:
88-
# .python-version
88+
.python-version
8989

9090
# pipenv
9191
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.

tests/torch_compile/conftest.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,20 @@ def initialize_environment():
3232
return
3333

3434

35+
@pytest.fixture(scope="class")
36+
def monkeypatch_class():
37+
monkeypatch = pytest.MonkeyPatch()
38+
yield monkeypatch
39+
monkeypatch.undo()
40+
41+
42+
@pytest.fixture(scope="module")
43+
def monkeypatch_module():
44+
monkeypatch = pytest.MonkeyPatch()
45+
yield monkeypatch
46+
monkeypatch.undo()
47+
48+
3549
@pytest.fixture
3650
def vllm_config():
3751
scheduler_config = SchedulerConfig.default_factory()

tests/torch_compile/e2e/conftest.py

Lines changed: 0 additions & 31 deletions
This file was deleted.

tests/torch_compile/unit/v1/worker/__init__.py

Whitespace-only changes.

0 commit comments

Comments
 (0)