Example #1
0
 def test_cwd_exposure(self):
     cwd = os.getcwd()
     _path = sys.path
     sys.path = [p for p in _path if p != cwd]
     self.assertTrue(cwd not in sys.path)
     ux.exposeProject(self.DEFAULTS)
     self.assertTrue(cwd in sys.path)
Example #2
0
 def test_cwd_exposure(self):
     cwd = os.getcwd()
     _path = sys.path
     sys.path = [p for p in _path if p != cwd]
     self.assertTrue(cwd not in sys.path)
     ux.exposeProject(self.DEFAULTS)
     self.assertTrue(cwd in sys.path)
Example #3
0
 def test_pythonpath(self):
     options = self.DEFAULTS
     test_path = os.path.join(os.path.dirname(os.getcwd()),
                              'hendrix/test/testproject')
     options['pythonpath'] = test_path
     ux.exposeProject(options)
     self.assertTrue(test_path in sys.path)
     sys.path = [p for p in sys.path if p != test_path]
Example #4
0
 def test_pythonpath(self):
     options = self.DEFAULTS
     test_path = os.path.join(
         os.path.dirname(os.getcwd()),
         'hendrix/test/testproject'
     )
     options['pythonpath'] = test_path
     ux.exposeProject(options)
     self.assertTrue(test_path in sys.path)
     sys.path = [p for p in sys.path if p != test_path]