Skip to content

Commit

Permalink
Trying to get the translation test working
Browse files Browse the repository at this point in the history
  • Loading branch information
ahsimb committed Feb 1, 2024
1 parent 8981fa2 commit 9b36680
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 6 deletions.
3 changes: 3 additions & 0 deletions test/notebooks/nbtest_itde.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
import pytest
from exasol.secret_store import Secrets
from exasol.itde_manager import (
bring_itde_up,
take_itde_down
)
from exasol.connections import open_pyexasol_connection


@pytest.mark.skip('just want to see if the translation works')
def test_itde(tmp_path):
store_path = tmp_path / 'tmp_config.sqlite'
store_password = "password"
Expand Down
2 changes: 2 additions & 0 deletions test/notebooks/nbtest_sagemaker.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
from inspect import cleandoc
import textwrap

import pytest
from exasol.secret_store import Secrets
from exasol.ai_lab_config import AILabConfig as CKey

Expand Down Expand Up @@ -172,6 +173,7 @@ def continuous_job_polling():
)


@pytest.mark.skip('just want to see if the translation works')
def test_sagemaker(access_to_temp_secret_store, uploading_hack):

store_path, store_password = access_to_temp_secret_store
Expand Down
3 changes: 3 additions & 0 deletions test/notebooks/nbtest_sklearn.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
import os
import pytest

from notebook_test_utils import (access_to_temp_secret_store, notebook_runner)


@pytest.mark.skip('just want to see if the translation works')
def test_regression(notebook_runner) -> None:

current_dir = os.getcwd()
Expand All @@ -18,6 +20,7 @@ def test_regression(notebook_runner) -> None:
os.chdir(current_dir)


@pytest.mark.skip('just want to see if the translation works')
def test_classification(notebook_runner) -> None:

current_dir = os.getcwd()
Expand Down
18 changes: 12 additions & 6 deletions test/notebooks/nbtest_transformers.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,19 @@
@pytest.mark.parametrize(
"notebook_file",
[
'sequence_classification.ipynb',
'question_answering.ipynb',
'masked_modelling.ipynb',
'token_classification.ipynb',
'text_generation.ipynb',
pytest.param('sequence_classification.ipynb',
marks=pytest.mark.xfail(reason='just want to see if the translation works')),
pytest.param('question_answering.ipynb',
marks=pytest.mark.xfail(reason='just want to see if the translation works')),
pytest.param('masked_modelling.ipynb',
marks=pytest.mark.xfail(reason='just want to see if the translation works')),
pytest.param('token_classification.ipynb',
marks=pytest.mark.xfail(reason='just want to see if the translation works')),
pytest.param('text_generation.ipynb',
marks=pytest.mark.xfail(reason='just want to see if the translation works')),
'translation.ipynb',
'zero_shot_classification.ipynb'
pytest.param('zero_shot_classification.ipynb',
marks=pytest.mark.xfail(reason='just want to see if the translation works')),
]
)
def test_transformers(notebook_runner, uploading_hack, notebook_file) -> None:
Expand Down

0 comments on commit 9b36680

Please sign in to comment.