Config¶
Provides the configuration for the implementations of the
Asserter class.
- class Config¶
Configuration class used by
Asserterto determine runtime feedback maker functions.- Parameters:
data – The configuration data that can be provided to override the default configuration.
Options
The default feedback makers for assertions that compare a value to another parameter.
The default feedback makers for assertions that compare a value to another parameter.
The default feedback makers for assertions that expect something to exist.
The default feedback makers for assertions that expect something to not exist.
The message to display by default when calling
emit_successon anyAsserterobject.The writer that determines how the output is provided to the user.
Properties
Whether the package is running in ATv2 environment.
A maker object used by
Asserterto produce the feedback messages for its assertions that expect something to be equal, contain, have a property equal to...A maker object used by
Asserterto produce the feedback messages for its assertions that expect something to not be equal, contain, have a property equal to...A maker object used by
Asserterto produce the feedback messages for its assertions that expect something to exist.A maker object used by
Asserterto 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_successon anyAsserterobject.
- property expect_feedback_maker: ExpectFeedbackMaker¶
A maker object used by
Asserterto 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
Asserterto 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
Asserterto produce the feedback messages for its assertions that expect something to exist.
- property not_exist_feedback_maker: ExistFeedbackMaker¶
A maker object used by
Asserterto produce the feedback messages for its assertions that expect something to not exist.