How to use the approvaltests.reporters.diff_reporter.DiffReporter function in approvaltests

To help you get started, we’ve selected a few approvaltests examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github approvals / ApprovalTests.Python / approvaltests / approvals.py View on Github external
def get_default_reporter():
    if not hasattr(DEFAULT_REPORTER, "v") or DEFAULT_REPORTER.v is None:
        return DiffReporter()
    return DEFAULT_REPORTER.v
github approvals / ApprovalTests.Python / approvaltests / reporters / diff_reporter.py View on Github external
def __init__(self):
        factory = GenericDiffReporterFactory()
        
        reporters = list(factory.get_all_reporters())
        reporters.append(CommandLineReporter())
        super(DiffReporter, self).__init__(*reporters)