Table of Contents

Class: connect ./src/peak/util/mockdb.py
Methods   
__init__
_execute
_verifyFinished
alsoExpect
close
commit
cursor
expect
provide
rollback
when
  __init__ 
__init__ ( self )

  _execute 
_execute (
        self,
        cursor,
        operation,
        parameters,
        )

Exceptions   
AssertionError( "Unexpected query", operation, parameters )
AssertionError("Expected: %s; Got: %s" %(( operation, parameters ), ( expected_op, expected_params ) ) )
  _verifyFinished 
_verifyFinished ( self )

Exceptions   
AssertionError( "Un-executed queries", self._expected )
  alsoExpect 
alsoExpect (
        self,
        operation,
        parameters=None,
        )

Expect additional operation(s)

  close 
close ( self )

  commit 
commit ( self )

  cursor 
cursor ( self )

  expect 
expect (
        self,
        operation,
        parameters=None,
        )

Expect a cursor to execute operation with parameters

  provide 
provide (
        self,
        data,
        description=(),
        )

Provide data and description in reply to next operation

Exceptions   
ProgrammingError( "More results provided than queries expected" )
  rollback 
rollback ( self )

  when 
when (
        self,
        operation,
        parameters=NOT_GIVEN,
        data=None,
        description=(),
        callback=NOT_GIVEN,
        )


Table of Contents

This document was automatically generated on Mon Apr 22 01:11:04 2024 by HappyDoc version 2.1