Types

The types used in the cg_feedback_helpers package.

class FeedbackType

Currently supported feedback types.

POSITIVE = 'positive'

Feedback provided in case of assertions passing.

NEGATIVE = 'negative'

Feedback provided in case of assertions failing.

NO_FEEDBACK = NoFeedback

Constant that represents the “do not print any feedback” case.

Feedback
  • None, empty string = use default feedback

  • non-empty string = custom feedback

  • NoFeedback = Do not print any feedback

alias of str | NoFeedback

is_atv2()

Detects whether the code is running on ATv2.

Returns:

Whether ATv2 environment was detected.

Return type:

bool