# 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 os
import pytest
from jenkinsflow.flow import serial
from .framework import api_select
from .cfg import ApiType
# Copyright (c) 2012 - 2015 Lars Hupfeldt Nielsen, Hupfeldt IT
# All rights reserved. This work is under a BSD license, see LICENSE.TXT.






@pytest.mark.apis(ApiType.SCRIPT)
def test_script_api_env_unchanged(api_type):
    """Ensure that os.environ is unchanged after run of slow using script_api"""

    env_before = os.environ.copy()


# 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/script_api_env_test.py
import os
import pytest
from jenkinsflow.flow import serial
from .framework import api_select
from .cfg import ApiType

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






@pytest.mark.apis(ApiType.SCRIPT)
def test_script_api_env_unchanged(api_type):
    """Ensure that os.environ is unchanged after run of slow using script_api"""

    env_before = os.environ.copy()


    with api_select.api(__file__, api_type, login=True) as api: