فهرست منبع

Revert changes to tests

Steven Silvester 7 سال پیش
والد
کامیت
0ab07e479b
1فایلهای تغییر یافته به همراه4 افزوده شده و 2 حذف شده
  1. 4 2
      jupyterlab/tests/test_jupyterlab.py

+ 4 - 2
jupyterlab/tests/test_jupyterlab.py

@@ -135,8 +135,9 @@ class TestExtension(TestCase):
         assert '@jupyterlab/mime-extension-test' not in _get_extensions(self.app_dir)
 
     def test_install_incompatible(self):
-        with pytest.raises(ValueError):
+        with pytest.raises(ValueError) as excinfo:
             install_extension(self.incompat_dir)
+        assert 'Conflicting Dependencies' in str(excinfo.value)
 
     def test_install_failed(self):
         path = self.mock_package
@@ -199,8 +200,9 @@ class TestExtension(TestCase):
         assert not data['name'] in linked
 
     def test_link_incompatible(self):
-        with pytest.raises(ValueError):
+        with pytest.raises(ValueError) as excinfo:
             install_extension(self.incompat_dir)
+        assert 'Conflicting Dependencies' in str(excinfo.value)
 
     def test_unlink_package(self):
         target = self.source_dir