Esempio n. 1
0
    def testScenarioRenameElementRollback(self):
        refresh()
        serviceproduction.handleAdd(
            Tempout(), {"production_location": REPOSITORYLOCATION, "production_name": "unittest"}, {}
        )
        session = {}
        serviceproduction.handleActivateProduction(Tempout(), {"production_id": 1}, session)

        self.renameElement(session, "chars/frankie.blend", "GRFlyingSquirrel", "GRFrankie")
        servicerefactor.handleRollbackCurrentTasks(Tempout(), {}, session)
Esempio n. 2
0
 def testMissingBlendFileRollback(self):
     refresh()
     self.osRenameFile("chars/bird.blend", "chars/birdtest.blend")
     serviceproduction.handleAdd(
         Tempout(), {"production_location": REPOSITORYLOCATION, "production_name": "unittest"}, {}
     )
     session = {}
     serviceproduction.handleActivateProduction(Tempout(), {"production_id": 1}, session)
     self.fix("chars/bird.blend", "levels/start_menu.blend", "chars/birdtest.blend", session)
     servicerefactor.handleRollbackCurrentTasks(Tempout(), {}, session)
Esempio n. 3
0
    def testScenarioRenameTextureRollback(self):
        refresh()
        serviceproduction.handleAdd(
            Tempout(), {"production_location": REPOSITORYLOCATION, "production_name": "unittest"}, {}
        )
        session = {}
        serviceproduction.handleActivateProduction(Tempout(), {"production_id": 1}, session)

        self.renameFile(session, "chars/textures/flyingsquirrel_skin_col.jpg", "frankie_skin_col.jpg")
        servicerefactor.handleRollbackCurrentTasks(Tempout(), {}, session)
Esempio n. 4
0
    def testScenarioMoveBlendRollback(self):
        refresh()
        serviceproduction.handleAdd(
            Tempout(), {"production_location": REPOSITORYLOCATION, "production_name": "unittest"}, {}
        )
        session = {}
        serviceproduction.handleActivateProduction(Tempout(), {"production_id": 1}, session)

        self.moveFile(session, "chars/frankie_testlevel.blend", "levels")
        servicerefactor.handleRollbackCurrentTasks(Tempout(), {}, session)
Esempio n. 5
0
    def testScenarioRenameBlendRollback(self):
        refresh()
        serviceproduction.handleAdd(
            Tempout(), {
                "production_location": REPOSITORYLOCATION,
                "production_name": "unittest"
            }, {})
        session = {}
        serviceproduction.handleActivateProduction(Tempout(),
                                                   {"production_id": 1},
                                                   session)

        self.renameFile(session, "chars/frankie.blend", "frankie_momo.blend")
        servicerefactor.handleRollbackCurrentTasks(Tempout(), {}, session)
Esempio n. 6
0
 def testMissingBlendFileRollback(self):
     refresh()
     self.osRenameFile("chars/bird.blend", "chars/birdtest.blend")
     serviceproduction.handleAdd(
         Tempout(), {
             "production_location": REPOSITORYLOCATION,
             "production_name": "unittest"
         }, {})
     session = {}
     serviceproduction.handleActivateProduction(Tempout(),
                                                {"production_id": 1},
                                                session)
     self.fix("chars/bird.blend", "levels/start_menu.blend",
              "chars/birdtest.blend", session)
     servicerefactor.handleRollbackCurrentTasks(Tempout(), {}, session)
Esempio n. 7
0
    def testScenarioRenameTextureRollback(self):
        refresh()
        serviceproduction.handleAdd(
            Tempout(), {
                "production_location": REPOSITORYLOCATION,
                "production_name": "unittest"
            }, {})
        session = {}
        serviceproduction.handleActivateProduction(Tempout(),
                                                   {"production_id": 1},
                                                   session)

        self.renameFile(session, "chars/textures/flyingsquirrel_skin_col.jpg",
                        "frankie_skin_col.jpg")
        servicerefactor.handleRollbackCurrentTasks(Tempout(), {}, session)