Exemplo n.º 1
0
    def test_legal_flag_doesnt_block_copr_functionality(self, f_users, f_coprs, f_db):
        self.db.session.add(
            self.models.Action(object_type="copr", object_id=self.c1.id, action_type=ActionTypeEnum("legal-flag"))
        )

        self.db.session.commit()
        # test will fail if this raises exception
        CoprsLogic.raise_if_unfinished_blocking_action(self.c1, "ha, failed")
Exemplo n.º 2
0
    def test_legal_flag_doesnt_block_copr_functionality(self, f_users,
                                                        f_coprs, f_db):
        self.db.session.add(self.models.Action(
            object_type="copr",
            object_id=self.c1.id,
            action_type=ActionTypeEnum("legal-flag")))

        self.db.session.commit()
        # test will fail if this raises exception
        CoprsLogic.raise_if_unfinished_blocking_action(self.c1, "ha, failed")