Config

Provides the configuration for the implementations of the Asserter class.

class Config

Configuration class used by Asserter to determine runtime feedback maker functions.

Parameters:

data – The configuration data that can be provided to override the default configuration.

Options

expect_feedback

The default feedback makers for assertions that compare a value to another parameter.

not_expect_feedback

The default feedback makers for assertions that compare a value to another parameter.

exist_feedback

The default feedback makers for assertions that expect something to exist.

not_exist_feedback

The default feedback makers for assertions that expect something to not exist.

success_message

The message to display by default when calling emit_success on any Asserter object.

writer

The writer that determines how the output is provided to the user.

Properties

is_atv2

Whether the package is running in ATv2 environment.

expect_feedback_maker

A maker object used by Asserter to produce the feedback messages for its assertions that expect something to be equal, contain, have a property equal to...

not_expect_feedback_maker

A maker object used by Asserter to produce the feedback messages for its assertions that expect something to not be equal, contain, have a property equal to...

exist_feedback_maker

A maker object used by Asserter to produce the feedback messages for its assertions that expect something to exist.

not_exist_feedback_maker

A maker object used by Asserter to produce the feedback messages for its assertions that expect something to not exist.

expect_feedback: Optional[DefaultExpectFeedback] = None

The default feedback makers for assertions that compare a value to another parameter. Used for expectations that should be met.

not_expect_feedback: Optional[DefaultExpectFeedback] = None

The default feedback makers for assertions that compare a value to another parameter. Used for expectation that should not be met.

exist_feedback: Optional[DefaultExistFeedback] = None

The default feedback makers for assertions that expect something to exist.

not_exist_feedback: Optional[DefaultExistFeedback] = None

The default feedback makers for assertions that expect something to not exist.

success_message: str = 'Everything was correct! Good job!'

The message to display by default when calling emit_success on any Asserter object.

writer: Writer

The writer that determines how the output is provided to the user.

property is_atv2: bool

Whether the package is running in ATv2 environment.

property expect_feedback_maker: ExpectFeedbackMaker

A maker object used by Asserter to produce the feedback messages for its assertions that expect something to be equal, contain, have a property equal to…

property not_expect_feedback_maker: ExpectFeedbackMaker

A maker object used by Asserter to produce the feedback messages for its assertions that expect something to not be equal, contain, have a property equal to…

property exist_feedback_maker: ExistFeedbackMaker

A maker object used by Asserter to produce the feedback messages for its assertions that expect something to exist.

property not_exist_feedback_maker: ExistFeedbackMaker

A maker object used by Asserter to produce the feedback messages for its assertions that expect something to not exist.