Skip to content

Commit

Permalink
fine tune test timeouts
Browse files Browse the repository at this point in the history
fine tune timeouts for some tests

fix black formatting

add comments
  • Loading branch information
m-vdb committed Sep 10, 2020
1 parent f64ceec commit f376df3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pytest.ini
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
markers =
skip_on_windows: mark a test as a test that shouldn't be executed on Windows.
# see https://pypi.org/project/pytest-timeout/
timeout = 60
timeout = 120
1 change: 1 addition & 0 deletions tests/nlu/test_evaluation.py
Original file line number Diff line number Diff line change
Expand Up @@ -356,6 +356,7 @@ def test_run_evaluation(unpacked_trained_moodbot_path):
assert result.get("intent_evaluation")


@pytest.mark.timeout(240) # these can take a longer time than the default timeout
def test_run_cv_evaluation(pretrained_embeddings_spacy_config):
td = rasa.shared.nlu.training_data.loading.load_data(
"data/examples/rasa/demo-rasa.json"
Expand Down
1 change: 1 addition & 0 deletions tests/test_train.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@ def test_train_nlu_no_nlu_file_error_message(
assert "No NLU data given" in captured.out


@pytest.mark.timeout(240) # these can take a longer time than the default timeout
def test_trained_interpreter_passed_to_core_training(
monkeypatch: MonkeyPatch, tmp_path: Path, unpacked_trained_moodbot_path: Text
):
Expand Down

0 comments on commit f376df3

Please sign in to comment.