"""
Place globals in this file. We will attempt to import from a local environment
file called environment_NOCOMMIT.py which is ignored by git. Any environment
overrides belong in this file. It is your responsibility to protect any
sensitive data stored in that file and DO NOT commit it to git. To run the
tests with real HTTP requsests on your own Paychex account, create a
environment_NOCOMMIT.py file with contents similar to the following: ::

    # Local terrain overrides
    MOCK_REQUESTS = False
    if not MOCK_REQUESTS:
        USERNAME = 'YOUR_USERNAME'
        SECURITY_IMAGE_PATH = '/ssologin/Media/Images/Security/YOUR_IMAGE.gif'
        PASSWORD = '<PASSWORD>'
        BOL_USERNAME = 'YOUR_BOL_USERNAME'   # Obtained by get_bol_username
"""

import os


MOCK_REQUESTS = True
USERNAME = 'FAKE_USERNAME'
SECURITY_IMAGE_PATH = '/ssologin/Media/Images/Security/Butterfly.gif'
PASSWORD = '<PASSWORD>'
BOL_USERNAME = 'FAKE_USERNAME_BOL'

try:
    from features.environment_NOCOMMIT import *
except ImportError:
    pass


def before_scenario(context, scenario):
    """ Reset some global variables to default """
    # Make sure the test config file doesn't exist
    if hasattr(context, 'config_file') and os.path.isfile(context.config_file):
        os.remove(context.config_file)

    # Reset vars
    context.mock_requests = MOCK_REQUESTS
    context.username = USERNAME
    context.security_image_path = SECURITY_IMAGE_PATH
    context.password = PASSWORD
    context.bol_username = BOL_USERNAME
    context.exceptions = []
    context.has_bol = True
    context.config_file = './pychex-test.cfg'
    if os.path.isfile(context.config_file):
        os.remove(context.config_file)
    context.security_answer = 'yes'
    return context

"""
Place globals in this file. We will attempt to import from a local environment
file called environment_NOCOMMIT.py which is ignored by git. Any environment
overrides belong in this file. It is your responsibility to protect any
sensitive data stored in that file and DO NOT commit it to git. To run the
tests with real HTTP requsests on your own Paychex account, create a
environment_NOCOMMIT.py file with contents similar to the following: ::

    # Local terrain overrides
    MOCK_REQUESTS = False
    if not MOCK_REQUESTS:
        USERNAME = 'YOUR_USERNAME'
        SECURITY_IMAGE_PATH = '/ssologin/Media/Images/Security/YOUR_IMAGE.gif'
        PASSWORD = '<PASSWORD>'
        BOL_USERNAME = 'YOUR_BOL_USERNAME'   # Obtained by get_bol_username
"""

import os


MOCK_REQUESTS = True
USERNAME = 'FAKE_USERNAME'
SECURITY_IMAGE_PATH = '/ssologin/Media/Images/Security/Butterfly.gif'
PASSWORD = '<PASSWORD>'
BOL_USERNAME = 'FAKE_USERNAME_BOL'

try:
    from features.environment_NOCOMMIT import *
except ImportError:
    pass


def before_scenario(context, scenario):
    """ Reset some global variables to default """
    # Make sure the test config file doesn't exist
    if hasattr(context, 'config_file') and os.path.isfile(context.config_file):
        os.remove(context.config_file)

    # Reset vars
    context.mock_requests = MOCK_REQUESTS
    context.username = USERNAME
    context.security_image_path = SECURITY_IMAGE_PATH
    context.password = PASSWORD
    context.bol_username = BOL_USERNAME
    context.exceptions = []
    context.has_bol = True
    context.config_file = './pychex-test.cfg'
    if os.path.isfile(context.config_file):
        os.remove(context.config_file)
    context.security_answer = 'yes'
    return context

Place globals in this file. We will attempt to import from a local environment file called environment_NOCOMMIT.py which is ignored by git. Any environment overrides belong in this file. It is your responsibility to protect any sensitive data stored in that file and DO NOT commit it to git. To run the tests with real HTTP requsests on your own Paychex account, create a environment_NOCOMMIT.py file with contents similar to the following: ::      # Local terrain overrides     MOCK_REQUESTS = False     if not MOCK_REQUESTS:         USERNAME = 'YOUR_USERNAME'         SECURITY_IMAGE_PATH = '/ssologin/Media/Images/Security/YOUR_IMAGE.gif'         PASSWORD = '<PASSWORD>'         BOL_USERNAME = 'YOUR_BOL_USERNAME'   # Obtained by get_bol_username Reset some global variables to default # Make sure the test config file doesn't exist # Reset vars