Beispiel #1
0
 def setUp(self):
     EnvironmentUtil.setup_fresh_test_env()
     self.context = CommandContext.via({'type': 'memory-db'})
     self.downCommand = DownCommand(self.context)
     self.newCommand = NewCommand(self.context)
     self.upCommand = UpCommand(self.context)
     self.checkCommand = CheckCommand(self.context)
Beispiel #2
0
 def init(cls):
     if not cls.initialized:
         cls.context = CommandContext.via({'type': 'memory-db'})
         cls.newCommand = NewCommand(cls.context)
         cls.upCommand = UpCommand(cls.context)
         cls.initialized = True