Skip to content

Have a feditest.report_problem() or such #452

@jernst

Description

@jernst

Common pattern: something is supposed to raise an exception, but does not and continues normally:

try:
    this_should_raise_exception()

    feditest.report_problem('Exception not raised')
except ExpectedException as ex:
    ...

Hamcrest has a construct for this, but it is non-obvious how to use it. This is simpler, but does not prevent anybody from using the Hamcrest construct either.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions