yonikremer
commited on
Commit
·
3e0e787
1
Parent(s):
f899b38
testing the demo - available models and not all the supported models
Browse files
tests.py
CHANGED
@@ -1,6 +1,7 @@
|
|
1 |
import pytest as pytest
|
2 |
-
from grouped_sampling import GroupedSamplingPipeLine,
|
3 |
|
|
|
4 |
from hanlde_form_submit import create_pipeline, on_form_submit
|
5 |
|
6 |
|
@@ -21,7 +22,7 @@ def test_on_form_submit():
|
|
21 |
|
22 |
@pytest.mark.parametrize(
|
23 |
"model_name",
|
24 |
-
|
25 |
)
|
26 |
def test_create_pipeline(model_name: str):
|
27 |
pipeline: GroupedSamplingPipeLine = create_pipeline(model_name, 5)
|
|
|
1 |
import pytest as pytest
|
2 |
+
from grouped_sampling import GroupedSamplingPipeLine, UnsupportedModelNameException
|
3 |
|
4 |
+
from available_models import AVAILABLE_MODELS
|
5 |
from hanlde_form_submit import create_pipeline, on_form_submit
|
6 |
|
7 |
|
|
|
22 |
|
23 |
@pytest.mark.parametrize(
|
24 |
"model_name",
|
25 |
+
AVAILABLE_MODELS,
|
26 |
)
|
27 |
def test_create_pipeline(model_name: str):
|
28 |
pipeline: GroupedSamplingPipeLine = create_pipeline(model_name, 5)
|