Beispiel #1
0
 def test_making_root_folder_if_it_does_not_exist(self):
     project = Project('sampleproject2')
     try:
         self.assertTrue(os.path.exists('sampleproject2') and
                         os.path.isdir('sampleproject2'))
     finally:
         testutils.remove_project(project)
Beispiel #2
0
 def test_making_root_folder_if_it_does_not_exist(self):
     project = Project("sampleproject2")
     try:
         self.assertTrue(
             os.path.exists("sampleproject2")
             and os.path.isdir("sampleproject2"))
     finally:
         testutils.remove_project(project)
Beispiel #3
0
 def test_ignoring_symlinks_inside_project(self):
     project2 = testutils.sample_project(folder_name='sampleproject2')
     mod = project2.root.create_file('mod.py')
     try:
         path = os.path.join(self.project.address, 'linkedfile.txt')
         os.symlink(mod.real_path, path)
         files = self.project.root.get_files()
         self.assertEquals(1, len(files))
     finally:
         testutils.remove_project(project2)
Beispiel #4
0
 def test_ignoring_symlinks_inside_project(self):
     project2 = testutils.sample_project(folder_name="sampleproject2")
     mod = project2.root.create_file("mod.py")
     try:
         path = os.path.join(self.project.address, "linkedfile.txt")
         os.symlink(mod.real_path, path)
         files = self.project.root.get_files()
         self.assertEquals(1, len(files))
     finally:
         testutils.remove_project(project2)
def pytest_funcarg__project(request):
    project = testutils.sample_project()
    add_gtk_extension_modules(project)
    project.pycore.hintdb = PyGtkHintProvider(project)
    project.db = project.pycore.hintdb

    request.addfinalizer(lambda: testutils.remove_project(project))
    return project
Beispiel #6
0
 def tearDown(self):
     testutils.remove_project(self.project)
     super(PythonFileRunnerTest, self).tearDown()
Beispiel #7
0
 def tearDown(self):
     testutils.remove_project(self.project)
     super(self.__class__, self).tearDown()
 def tearDown(self):
     testutils.remove_project(self.project)
     super(ChangeSignatureTest, self).tearDown()
Beispiel #9
0
 def tearDown(self):
     testutils.remove_project(self.project)
     unittest.TestCase.tearDown(self)
Beispiel #10
0
 def tearDown(self):
     testutils.remove_project(self.project)
     testutils.remove_recursively(self.test_directory)
     super(OutOfProjectTest, self).tearDown()
Beispiel #11
0
 def tearDown(self):
     testutils.remove_project(self.project)
     super(AutoImportTest, self).tearDown()
Beispiel #12
0
 def tearDown(self):
     testutils.remove_project(self.project)
     super(ChangeOccurrencesTest, self).tearDown()
 def tearDown(self):
     testutils.remove_project(self.project)
     super(ChangeSignatureTest, self).tearDown()
 def tearDown(self):
     testutils.remove_project(self.project)
     super(HintingTest, self).tearDown()
Beispiel #15
0
 def tearDown(self):
     testutils.remove_project(self.project)
     super(IsolatedHistoryTest, self).tearDown()
Beispiel #16
0
 def tearDown(self):
     testutils.remove_project(self.project)
     super(SavingHistoryTest, self).tearDown()
Beispiel #17
0
 def tearDown(self):
     testutils.remove_project(self.project)
     super(NewStaticOITest, self).tearDown()
Beispiel #18
0
 def tearDown(self):
     testutils.remove_project(self.project)
     super(CodeAssistTest, self).tearDown()
Beispiel #19
0
 def tearDown(self):
     testutils.remove_project(self.project)
     super(PyCoreScopesTest, self).tearDown()
Beispiel #20
0
 def tearDown(self):
     testutils.remove_project(self.project)
     super(BuiltinModulesTest, self).tearDown()
Beispiel #21
0
 def tearDown(self):
     testutils.remove_project(self.project)
     super(GenerateTest, self).tearDown()
Beispiel #22
0
 def tearDown(self):
     testutils.remove_project(self.project)
     super(NewStaticOITest, self).tearDown()
Beispiel #23
0
 def tearDown(self):
     testutils.remove_project(self.project)
     super(UseFunctionTest, self).tearDown()
Beispiel #24
0
 def tearDown(self):
     testutils.remove_project(self.project)
     super(ExtractMethodTest, self).tearDown()
Beispiel #25
0
 def tearDown(self):
     testutils.remove_project(self.project)
     super(PythonFileRunnerTest, self).tearDown()
Beispiel #26
0
 def tearDown(self):
     for db in self.dbs:
         db.write()
     testutils.remove_project(self.project)
     super(ObjectDBTest, self).tearDown()
Beispiel #27
0
 def tearDown(self):
     for db in self.dbs:
         db.write()
     testutils.remove_project(self.project)
     super(ObjectDBTest, self).tearDown()
Beispiel #28
0
 def tearDown(self):
     testutils.remove_project(self.project)
     super(FindErrorsTest, self).tearDown()
Beispiel #29
0
 def tearDown(self):
     testutils.remove_project(self.project)
     super(CodeAssistTest, self).tearDown()
Beispiel #30
0
 def tearDown(self):
     testutils.remove_project(self.project)
     super(ScopeNameFinderTest, self).tearDown()
Beispiel #31
0
 def tearDown(self):
     testutils.remove_project(self.project)
     super(FixModuleNamesTest, self).tearDown()
 def tearDown(self):
     testutils.remove_project(self.project)
     super(SimilarFinderTest, self).tearDown()
Beispiel #33
0
 def tearDown(self):
     testutils.remove_project(self.project1)
     testutils.remove_project(self.project2)
     super(MultiProjectRefactoringTest, self).tearDown()
 def tearDown(self):
     testutils.remove_project(self.project)
     super(CheckingFinderTest, self).tearDown()
Beispiel #35
0
 def tearDown(self):
     testutils.remove_project(self.project)
     super(self.__class__, self).tearDown()
Beispiel #36
0
 def tearDown(self):
     testutils.remove_project(self.project)
     super(SimilarFinderTest, self).tearDown()
Beispiel #37
0
 def tearDown(self):
     testutils.remove_project(self.project)
     super(RenameRefactoringTest, self).tearDown()
Beispiel #38
0
 def tearDown(self):
     testutils.remove_project(self.project)
     super(CheckingFinderTest, self).tearDown()
Beispiel #39
0
 def tearDown(self):
     testutils.remove_project(self.project)
     super(ImplicitInterfacesTest, self).tearDown()
Beispiel #40
0
 def tearDown(self):
     testutils.remove_project(self.project)
     super(GenerateTest, self).tearDown()
Beispiel #41
0
 def tearDown(self):
     testutils.remove_project(self.project)
     super(BuiltinModulesTest, self).tearDown()
Beispiel #42
0
 def tearDown(self):
     testutils.remove_project(self.project)
     super(AutoImportTest, self).tearDown()
Beispiel #43
0
 def tearDown(self):
     testutils.remove_project(self.project)
     unittest.TestCase.tearDown(self)
Beispiel #44
0
 def tearDown(self):
     testutils.remove_project(self.project1)
     testutils.remove_project(self.project2)
     super(MultiProjectRefactoringTest, self).tearDown()
Beispiel #45
0
 def tearDown(self):
     testutils.remove_project(self.project)
     super(ResourceObserverTest, self).tearDown()
Beispiel #46
0
 def tearDown(self):
     testutils.remove_project(self.project)
     super(FindItTest, self).tearDown()
Beispiel #47
0
 def tearDown(self):
     if self.project:
         testutils.remove_project(self.project)
     super(RopeFolderTest, self).tearDown()
Beispiel #48
0
 def tearDown(self):
     testutils.remove_project(self.project)
     super(ResourceObserverTest, self).tearDown()
Beispiel #49
0
 def tearDown(self):
     testutils.remove_project(self.project)
     super(RestructureTest, self).tearDown()
Beispiel #50
0
 def tearDown(self):
     if self.project:
         testutils.remove_project(self.project)
     super(RopeFolderTest, self).tearDown()
Beispiel #51
0
 def tearDown(self):
     testutils.remove_project(self.project)
     super(ObjectInferTest, self).tearDown()
Beispiel #52
0
 def tearDown(self):
     testutils.remove_project(self.project)
     super(AbstractHintingTest, self).tearDown()
Beispiel #53
0
 def tearDown(self):
     testutils.remove_project(self.project)
     testutils.remove_recursively(self.test_directory)
     super(OutOfProjectTest, self).tearDown()
Beispiel #54
0
 def tearDown(self):
     testutils.remove_project(self.project)
     super(PyCoreTest, self).tearDown()
Beispiel #55
0
 def tearDown(self):
     testutils.remove_project(self.project)
     super(ScopeNameFinderTest, self).tearDown()
Beispiel #56
0
 def tearDown(self):
     if self.project:
         testutils.remove_project(self.project)
     super(PyCoreProjectConfigsTest, self).tearDown()