Skip to content

Commit

Permalink
Disable some tests for nextflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Bond-009 committed Oct 18, 2024
1 parent 22df238 commit 05c09e0
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
2 changes: 2 additions & 0 deletions tests/language_markers.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@

EXCEPTION_LANGUAGES = ["python", "java", "kotlin", "csharp", "haskell"]

def all_languages_except(*args):
return [language for language in ALL_LANGUAGES if language not in args]

def test_no_missing_languages_from_tests():
assert sorted(ALL_LANGUAGES) == sorted(LANGUAGES.keys())
5 changes: 2 additions & 3 deletions tests/test_functionality.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
from tested.testsuite import Context, MainInput, Suite, Tab, Testcase, TextData
from tests.language_markers import (
ALL_LANGUAGES,
all_languages_except,
ALL_SPECIFIC_LANGUAGES,
EXCEPTION_LANGUAGES,
)
Expand Down Expand Up @@ -316,9 +317,7 @@ def test_batch_compilation_no_fallback_runtime(
assert all(s in ("runtime error", "wrong") for s in updates.find_status_enum())


@pytest.mark.parametrize(
"lang", ["python", "java", "c", "javascript", "kotlin", "bash", "csharp"]
)
@pytest.mark.parametrize("lang", all_languages_except("haskell", "runhaskell", "nextflow"))
def test_program_params(lang: str, tmp_path: Path, pytestconfig: pytest.Config):
conf = configuration(pytestconfig, "sum", lang, tmp_path, "short.tson", "correct")
result = execute_config(conf)
Expand Down
6 changes: 3 additions & 3 deletions tests/test_io_exercises.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

from tested.languages.language import STRING_QUOTES
from tested.testsuite import SupportedLanguage
from tests.language_markers import ALL_LANGUAGES
from tests.language_markers import ALL_LANGUAGES, all_languages_except
from tests.manual_utils import assert_valid_output, configuration, execute_config


Expand Down Expand Up @@ -80,7 +80,7 @@ def test_io_function_file_output_exercise(
assert updates.find_status_enum() == ["correct"]


@pytest.mark.parametrize("language", ALL_LANGUAGES)
@pytest.mark.parametrize("language", all_languages_except("nextflow"))
def test_io_function_additional_source_files(
language: str, tmp_path: Path, pytestconfig: pytest.Config
):
Expand Down Expand Up @@ -168,7 +168,7 @@ def test_io_function_display_no_multiline_exercise(
assert actual[0] == quote and actual[-1] == quote


@pytest.mark.parametrize("language", ALL_LANGUAGES)
@pytest.mark.parametrize("language", all_languages_except("nextflow"))
def test_io_function_nested_call_exercise(
language: str, tmp_path: Path, pytestconfig: pytest.Config
):
Expand Down

0 comments on commit 05c09e0

Please sign in to comment.