コード例 #1
0
def after_scenario(context, scenario):
    if 'provider' in scenario.tags:
        teardown_providers(context)

    if 'notification' in scenario.tags:
        tests.teardown_notification(context)

    superdesk.resource_preferences = []
コード例 #2
0
ファイル: environment.py プロジェクト: girgen79/superdesk
def after_scenario(context, scenario):
    if 'provider' in scenario.tags:
        teardown_providers(context)

    if 'notification' in scenario.tags:
        tests.teardown_notification(context)

    if 'clean' in scenario.tags:
        try:
            os.remove(get_macro_path('behave_macro.py'))
        except:
            pass
コード例 #3
0
ファイル: environment.py プロジェクト: ahilles107/superdesk-1
def after_scenario(context, scenario):
    if 'provider' in scenario.tags:
        teardown_providers(context)

    if 'notification' in scenario.tags:
        tests.teardown_notification(context)

    if 'clean' in scenario.tags:
        try:
            os.remove(get_macro_path('behave_macro.py'))
        except:
            pass
コード例 #4
0
def after_scenario(context, scenario):
    if "provider" in scenario.tags:
        teardown_providers(context)

    if "notification" in scenario.tags:
        tests.teardown_notification(context)

    if "clean" in scenario.tags:
        try:
            os.remove(get_macro_path("behave_macro.py"))
            os.remove(get_macro_path("validate_headline_macro.py"))
        except Exception:
            pass
コード例 #5
0
def after_scenario(context, scenario):
    if "provider" in scenario.tags:
        teardown_providers(context)

    if "notification" in scenario.tags:
        tests.teardown_notification(context)

    if "clean" in scenario.tags:
        try:
            os.remove(get_macro_path("behave_macro.py"))
            os.remove(get_macro_path("validate_headline_macro.py"))
        except:
            pass
コード例 #6
0
def after_scenario(context, scenario):
    if 'provider' in scenario.tags:
        teardown_providers(context)

    if 'notification' in scenario.tags:
        tests.teardown_notification(context)
コード例 #7
0
def after_scenario(context, scenario):
    if 'provider' in scenario.tags:
        teardown_providers(context)

    if 'notification' in scenario.tags:
        tests.teardown_notification(context)