BaseFactory#

class tpcp.BaseFactory[source]#

Baseclass for factories to circumvent mutable defaults.

Methods

__call__()

Call self as a function.

get_value()

Provide the value generated by the factory.

__init__(*args, **kwargs)#
get_value() Any[source]#

Provide the value generated by the factory.

This method will be called every time a new instance of a class is created.