diff --git a/tests/package/base.py b/tests/package/base.py index 6001fcea0..dd9b940e5 100644 --- a/tests/package/base.py +++ b/tests/package/base.py @@ -15,8 +15,6 @@ def test_import_cyclops(): with pytest.raises(ImportError): import cyclops.evaluate - with pytest.raises(ImportError): - import cyclops.query with pytest.raises(ImportError): import cyclops.models with pytest.raises(ImportError): diff --git a/tests/package/extras/models.py b/tests/package/extras/models.py index 71fc4d0bc..338594044 100644 --- a/tests/package/extras/models.py +++ b/tests/package/extras/models.py @@ -25,7 +25,5 @@ def test_import_cyclops(): assert monitor.__name__ == "cyclops.monitor" - with pytest.raises(ImportError): - import cyclops.query with pytest.raises(ImportError): import cyclops.report diff --git a/tests/package/extras/query.py b/tests/package/extras/query.py deleted file mode 100644 index 442b018f2..000000000 --- a/tests/package/extras/query.py +++ /dev/null @@ -1,27 +0,0 @@ -"""Test import of subpackages with base cyclops + query extra install.""" - -import pytest - - -def test_import_cyclops(): - """Test import of cyclops.""" - import cyclops - - assert cyclops.__name__ == "cyclops" - - from cyclops import data - - assert data.__name__ == "cyclops.data" - - from cyclops import query - - assert query.__name__ == "cyclops.query" - - with pytest.raises(ImportError): - import cyclops.evaluate - with pytest.raises(ImportError): - import cyclops.models - with pytest.raises(ImportError): - import cyclops.monitor - with pytest.raises(ImportError): - import cyclops.report diff --git a/tests/package/extras/report.py b/tests/package/extras/report.py index 6173458c3..217970034 100644 --- a/tests/package/extras/report.py +++ b/tests/package/extras/report.py @@ -21,7 +21,5 @@ def test_import_cyclops(): import cyclops.evaluate with pytest.raises(ImportError): import cyclops.models - with pytest.raises(ImportError): - import cyclops.query with pytest.raises(ImportError): import cyclops.monitor