From 23247889705d6a197e76f45993f54b3cfc39a6cc Mon Sep 17 00:00:00 2001 From: ines Date: Mon, 8 May 2017 16:15:27 +0200 Subject: [PATCH] Remove bad tests --- spacy/tests/test_cli.py | 26 -------------------------- 1 file changed, 26 deletions(-) delete mode 100644 spacy/tests/test_cli.py diff --git a/spacy/tests/test_cli.py b/spacy/tests/test_cli.py deleted file mode 100644 index 189a238fc..000000000 --- a/spacy/tests/test_cli.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 -from __future__ import unicode_literals - -from ..cli.download import download, get_compatibility, get_version, check_error_depr - -import pytest - - -@pytest.mark.parametrize('model', ['en_core_web_md']) -def test_cli_download_get_matching_version_succeeds(model): - comp = { model: ['1.7.0', '0.100.0'] } - assert get_version(model, comp) - - -@pytest.mark.parametrize('model', ['en_core_web_md']) -def test_cli_download_get_matching_version_fails(model): - diff_model = 'test_' + model - comp = { diff_model: ['1.7.0', '0.100.0'] } - with pytest.raises(SystemExit): - assert get_version(model, comp) - - -@pytest.mark.parametrize('model', [False, None, '', 'all']) -def test_cli_download_no_model_depr_error(model): - with pytest.raises(SystemExit): - check_error_depr(model)