def testBadMatplotlib(self):
     self.blockImport("matplotlib")
     self.assertFalse(CheckRequirements.check_matplotlib())
 def testBadQt(self):
     self.blockImport("PyQt5")
     self.assertFalse(CheckRequirements.check_qt())
 def testGoodMatplotlib(self):
     self.assertTrue(CheckRequirements.check_matplotlib())
 def testGoodVTK(self):
     self.assertTrue(CheckRequirements.check_vtk())
 def testGoodQt(self):
     self.assertTrue(CheckRequirements.check_qt())
Exemple #6
0
 def testBadOpenGL(self, mock_err):
     self.assertFalse(CheckRequirements.check_vtk())
 def testBadOpenGL(self, mock_err):
     self.assertFalse(CheckRequirements.check_vtk())
Exemple #8
0
 def testBadRequirements(self):
     self.blockImport("matplotlib")
     self.assertFalse(CheckRequirements.has_requirements())
Exemple #9
0
 def testGoodRequirements(self):
     self.assertTrue(CheckRequirements.has_requirements())
Exemple #10
0
 def testGoodMatplotlib(self):
     self.assertTrue(CheckRequirements.check_matplotlib())
Exemple #11
0
 def testBadMatplotlib(self):
     self.blockImport("matplotlib")
     self.assertFalse(CheckRequirements.check_matplotlib())
Exemple #12
0
 def testBadQt(self):
     self.blockImport("PyQt5")
     self.assertFalse(CheckRequirements.check_qt())
Exemple #13
0
 def testGoodQt(self):
     self.assertTrue(CheckRequirements.check_qt())
Exemple #14
0
 def testGoodVTK(self):
     self.assertTrue(CheckRequirements.check_vtk())
 def testBadRequirements(self):
     self.blockImport("matplotlib")
     self.assertFalse(CheckRequirements.has_requirements())
 def testBadVTK(self):
     self.blockImport("vtk")
     self.assertFalse(CheckRequirements.check_vtk())
 def testGoodRequirements(self):
     self.assertTrue(CheckRequirements.has_requirements())
Exemple #18
0
 def testBadVTK(self):
     self.blockImport("vtk")
     self.assertFalse(CheckRequirements.check_vtk())