# Path: test/framework/api_select.py
# def api(file_name, api_type, login=None, fixed_prefix=None, url_or_dir=None, fake_public_uri=None, invocation_class=None,
#         username=None, password=None):
# 
# Path: test/cfg.py
# class ApiType(Enum):
#     JENKINS = 0
#     SCRIPT = 1
#     MOCK = 2


import pytest
from jenkinsflow.flow import parallel
from .framework import api_select
from .cfg import ApiType
        from jenkinsflow.jenkins_api import Invocation
        from jenkinsflow.script_api import Invocation
# Copyright (c) 2012 - 2015 Lars Hupfeldt Nielsen, Hupfeldt IT
# All rights reserved. This work is under a BSD license, see LICENSE.TXT.





@pytest.mark.not_apis(ApiType.MOCK)
def test_replace_invocation_class_log_override(api_type, capsys):
    if api_type == ApiType.JENKINS:

        class LogInvocation(Invocation):
            def console_url(self):
                return "HELLO LOG"


# Path: test/framework/api_select.py
# def api(file_name, api_type, login=None, fixed_prefix=None, url_or_dir=None, fake_public_uri=None, invocation_class=None,
#         username=None, password=None):
# 
# Path: test/cfg.py
# class ApiType(Enum):
#     JENKINS = 0
#     SCRIPT = 1
#     MOCK = 2


# Path: test/replace_invocation_class_test.py
import pytest
from jenkinsflow.flow import parallel
from .framework import api_select
from .cfg import ApiType
        from jenkinsflow.jenkins_api import Invocation
        from jenkinsflow.script_api import Invocation

# Copyright (c) 2012 - 2015 Lars Hupfeldt Nielsen, Hupfeldt IT
# All rights reserved. This work is under a BSD license, see LICENSE.TXT.





@pytest.mark.not_apis(ApiType.MOCK)
def test_replace_invocation_class_log_override(api_type, capsys):
    if api_type == ApiType.JENKINS:

        class LogInvocation(Invocation):
            def console_url(self):
                return "HELLO LOG"


    elif api_type == ApiType.SCRIPT: