Undocumented
Class | adict |
Dict keys available as attributes. Shadows. |
Class |
|
Undocumented |
Function | all |
Undocumented |
Function | conforms |
True if the given sorting conforms to the given partial ordering. |
Function | count |
given a cache key tuple, counts how many instances of actual tuples are found. |
Function | drop |
Undocumented |
Function | drop |
Undocumented |
Function | fail |
Undocumented |
Function | flag |
A facade around @testing.combinations() oriented towards boolean keyword-based arguments. |
Function | force |
Force the given table names to be dropped after test complete, isolating for foreign key cycles |
Function | function |
Return a function with a given __name__. |
Function | lambda |
Undocumented |
Function | metadata |
Provide MetaData for a pytest fixture. |
Function | non |
Undocumented |
Function | picklers |
Undocumented |
Function | provide |
Provide bound MetaData for a single test, dropping afterwards. |
Function | random |
Undocumented |
Function | resolve |
Given a no-arg lambda and a namespace, return a new lambda that has all the values filled in. |
Function | round |
Undocumented |
Function | rowset |
Converts the results of sql execution into a plain set of column tuples. |
Function | run |
Run the given function under the given contextmanager, simulating the behavior of 'with' to support older Python versions. |
Function | teardown |
Undocumented |
Function | total |
Returns the approximate memory footprint an object and all of its contents. |
given a cache key tuple, counts how many instances of actual tuples are found. used to alert large jumps in cache key complexity.
Undocumented
A facade around @testing.combinations() oriented towards boolean keyword-based arguments. Basically generates a nice looking identifier based on the keywords and also sets up the argument names. E.g.:: @testing.flag_combinations( dict(lazy=False, passive=False), dict(lazy=True, passive=False), dict(lazy=False, passive=True), dict(lazy=False, passive=True, raiseload=True), ) would result in:: @testing.combinations( ('', False, False, False), ('lazy', True, False, False), ('lazy_passive', True, True, False), ('lazy_passive', True, True, True), id_='iaaa', argnames='lazy,passive,raiseload' )
Return a function with a given __name__. Will assign to __name__ and return the original function if possible on the Python implementation, otherwise a new function will be constructed. This function should be phased out as much as possible in favor of @decorator. Tests that "generate" many named tests should be modernized.
Provide bound MetaData for a single test, dropping afterwards. Legacy; use the "metadata" pytest fixture.
Given a no-arg lambda and a namespace, return a new lambda that has all the values filled in. This is used so that we can have module-level fixtures that refer to instance-level variables using lambdas.
Converts the results of sql execution into a plain set of column tuples. Useful for asserting the results of an unordered query.