-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add placeholder for int. tests for
mila serve
Signed-off-by: Fabrice Normandin <normandf@mila.quebec>
- Loading branch information
Showing
2 changed files
with
60 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
from __future__ import annotations | ||
|
||
import pytest | ||
|
||
from milatools.cli.common import standard_server_v1, standard_server_v2 | ||
|
||
from ..conftest import launches_jobs | ||
|
||
persist_or_not = pytest.mark.parametrize("persist", [True, False]) | ||
|
||
|
||
@launches_jobs | ||
@persist_or_not | ||
def test_standard_server_v1(cluster: str, allocation_flags: list[str], persist: bool): | ||
if cluster != "mila": | ||
pytest.skip(reason="Needs to be run on the Mila cluster for now.") | ||
standard_server_v1( | ||
path="bob", | ||
program="echo", | ||
installers={}, | ||
command="ls", | ||
profile=None, | ||
persist=persist, | ||
port=None, | ||
name=None, | ||
node=None, | ||
job=None, | ||
alloc=allocation_flags, # : list[str], | ||
) | ||
raise NotImplementedError("TODO: Add checks in this test.") | ||
|
||
|
||
@launches_jobs | ||
@persist_or_not | ||
def test_standard_server_v2(cluster: str, allocation_flags: list[str], persist: bool): | ||
raise NotImplementedError("TODO: Design this test.") | ||
standard_server_v2( | ||
path="bob", | ||
program="echo", | ||
installers={}, | ||
command="ls", | ||
profile=None, | ||
persist=persist, | ||
port=None, | ||
name=None, | ||
node=None, | ||
job=None, | ||
alloc=allocation_flags, | ||
cluster=cluster, # type: ignore | ||
) | ||
|
||
|
||
@launches_jobs | ||
@persist_or_not | ||
def test_mila_serve_notebook(cluster: str, allocation_flags: list[str]): | ||
raise NotImplementedError("TODO: Design this test.") |