def setUp(self):
     FileSystemTestCase.setUp(self)
     app = Application()
     app.settings = Settings(self.getWorkingDir())
     self.settings = app.settings
     self.diskIo = getDiskIo(app)
     self.applicationDirs = getApplicationDirs(app)
    def setUp(self):
        FileSystemTestCase.setUp(self)
        app = Application()

        app.settings = Settings(self.getWorkingDir())
        app.fileDownloader = createFakeFileDownloader(app, self.getDataPath('fake_internet'))

        self.profileRetriever = getProfileRetriever(app)
        self.diskIo = app.diskIo
        self.diskIo.createDirWithParents(app.settings.downloadsPath)
        self.diskIo.createDirWithParents(app.settings.cachePath)
 def setUp(self):
     FileSystemTestCase.setUp(self)
     self.app = Application()
     self.app.settings = Settings(self.getWorkingDir())
     self.app.fileDownloader = createFakeFileDownloader(
         self.app, self.getDataPath('fake_internet'))
     self.switchProfileAction = createSwitchProfileAction(self.app)
     self.app.diskIo.createDirWithParents(self.app.settings.cachePath)
     self.app.diskIo.createDirWithParents(self.app.settings.downloadsPath)
     self.profile = Profile('test/vimrc')
Beispiel #4
0
 def resetApplication(self):
     """
     Resets the state of the application. This needs to be called every time
     before running vimswitch.main()
     """
     self.app = Application()
     self.app.settings = Settings(self.getWorkingDir())
     self.app.fileDownloader = createFakeFileDownloader(
         self.app, self.fakeInternetRoot)
     self.vimSwitch = VimSwitch(self.app)
     self.vimSwitch.raiseExceptions = True
 def setUp(self):
     FileSystemTestCase.setUp(self)
     app = Application()
     self.githubZipballExtractor = getGithubZipballExtractor(app)
     self.diskIo = app.diskIo
 def setUp(self):
     app = Application()
     app.diskIo = DiskIoStub()  # Fake all disk operations
     self.commandLineParser = CommandLineParser()
     self.actionResolver = ActionResolver(app, self.commandLineParser)
     self.profile = Profile('test/vimrc')
Beispiel #7
0
 def setUp(self):
     app = Application()
     self.settings = getSettings(app)
     self.switchProfileAction = MagicMock(SwitchProfileAction)
     self.updateProfileAction = UpdateProfileAction(
         self.settings, self.switchProfileAction)
Beispiel #8
0
 def setUp(self):
     self.app = Application()
     self.action = createShowCurrentProfileAction(self.app)
 def setUp(self):
     app = Application()
     app.diskIo = DiskIoStub()  # Fake all disk operations
     self.commandLineParser = CommandLineParser()
     self.actionResolver = ActionResolver(app, self.commandLineParser)
     self.profile = Profile('test/vimrc')
Beispiel #10
0
 def setUp(self):
     FileSystemTestCase.setUp(self)
     self.app = Application()
     self.configFile = getConfigFile(self.app)