Beispiel #1
0
 def test_init_no_args_no_questions_no_output(self):
     ui = UI()
     cmd = init.init(ui)
     calls = []
     cmd.repository_factory = RecordingRepositoryFactory(calls,
         memory.RepositoryFactory())
     cmd.execute()
     self.assertEqual([('initialise', ui.here)], calls)
Beispiel #2
0
 def init_repo(self):
     """inits a new testrepository repo in the supplied path"""
     #os.chdir(self.testr_directory)
     try:
         cmd = init.init(self._ui)
         cmd.run()
     except OSError:
         # if this happens its fine .. just means the repo is already there
         pass
Beispiel #3
0
 def init_repo(self):
     """inits a new testrepository repo in the supplied path"""
     #os.chdir(self.testr_directory)
     try:
         cmd = init.init(self._ui)
         cmd.run()
     except OSError:
         # if this happens its fine .. just means the repo is already there
         pass