permaculture.testing package

Submodules

permaculture.testing.fixtures module

Testing fixtures.

The logger_handler fixture is automatically provided by this package, it does not need to be imported in conftest.py explicitly.

permaculture.testing.fixtures.logger_handler()

Logger handler fixture.

permaculture.testing.logger module

Logger testing module.

class permaculture.testing.logger.LoggerHandler

Bases: Handler

Logger handler for recording log messages.

emit(record)

Append to the list of records.

permaculture.testing.logger.logger_time(seconds=0.0)

Set the logger time to the given seconds within a context.

Parameters:

seconds – Time as returned by time.time().

permaculture.testing.unique module

Unique plugins.

Generate a unique cookie.

permaculture.testing.unique.unique_cookies(unique, count=1)

Generate a cookie jar with unique cookies.

permaculture.testing.unique.unique_plant(unique)

Generate a unique database plant.

permaculture.testing.unique.unique_token(unique)

Generate a unique token.

Module contents