-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added test cases for Windows and add integration test with Hub
- Loading branch information
Showing
2 changed files
with
32 additions
and
2 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,25 @@ | ||
import os | ||
|
||
import pytest | ||
|
||
import polaris as po | ||
from polaris.benchmark._base import BenchmarkSpecification | ||
from polaris.dataset._base import BaseDataset | ||
|
||
|
||
@pytest.mark.skipif( | ||
os.getenv("POLARIS_PASSWORD") is None and os.getenv("POLARIS_USER") is None, | ||
reason="This test case requires headless authentication to be set up", | ||
) | ||
def test_load_dataset_flow(): | ||
dataset = po.load_dataset("polaris/hello-world") | ||
assert isinstance(dataset, BaseDataset) | ||
|
||
|
||
@pytest.mark.skipif( | ||
os.getenv("POLARIS_PASSWORD") is None and os.getenv("POLARIS_USER") is None, | ||
reason="This test case requires headless authentication to be set up", | ||
) | ||
def test_load_benchmark_flow(): | ||
benchmark = po.load_benchmark("polaris/hello-world-benchmark") | ||
assert isinstance(benchmark, BenchmarkSpecification) |