Exemplo n.º 1
0
 def test_remove_trigger_function_extended(self, connection, rowid,
                                           rowidtype, triggerid, success):
     try:
         trigger.uninstall_trigger_function(connection, triggerid=triggerid)
         installed = trigger.trigger_function_installed(
             connection, triggerid)
         # the function should no longer be installed, so not success
         assert not installed == success
     except Exception as e:
         # assert that it should fail i.e. not success
         assert not success
Exemplo n.º 2
0
 def test_add_trigger_function_extended(self, connection, rowid, rowidtype,
                                        triggerid, success):
     try:
         trigger.install_trigger_function(connection,
                                          rowid=rowid,
                                          rowidtype=rowidtype,
                                          triggerid=triggerid)
         installed = trigger.trigger_function_installed(
             connection, triggerid)
         assert installed == success
     except Exception as e:
         # assert that it should fail i.e. not success
         assert not success
Exemplo n.º 3
0
    def test_trigger_function_installed(self, connection):
        installed = trigger.trigger_function_installed(connection)

        assert installed
    def test_trigger_function_not_installed(self, connection):
        installed = trigger_function_installed(connection)

        assert (installed == False)