Ejemplo n.º 1
0
def after_all(context):
    """Clean up static test data after all tests have run.

    This is data that does not change from test to test so it only needs to be setup
    and torn down once.
    """
    remove_agreements(
        context.db,
        [context.privacy_policy, context.terms_of_use, context.open_dataset])
Ejemplo n.º 2
0
def after_all(context):
    """Clean up static test data after all tests have run.

    This is data that does not change from test to test so it only needs to be setup
    and torn down once.
    """
    _log.info("cleaning up test suite")
    try:
        for wake_word in context.wake_words.values():
            _remove_wake_word_files(context, wake_word)
            remove_wake_word(context.db, wake_word)
        remove_agreements(
            context.db,
            [
                context.privacy_policy, context.terms_of_use,
                context.open_dataset
            ],
        )
        os.removedirs(context.wake_word_dir)
    except Exception:
        _log.exception("failure in test suite cleanup")
        raise
Ejemplo n.º 3
0
def after_all(context):
    remove_agreements(
        context.db,
        [context.privacy_policy, context.terms_of_use, context.open_dataset])
Ejemplo n.º 4
0
def after_all(context):
    """Global cleanup steps run after all tests complete."""
    remove_agreements(
        context.db, [context.privacy_policy, context.terms_of_use, context.open_dataset]
    )