# Path: wtframework/wtf/config.py
# WTF_CONFIG_READER = ConfigReader()


from wtframework.wtf.config import WTF_CONFIG_READER
#
#    admin_user = WTF_CONFIG_READER.get("admin_user", "admin")
#
# But you'll have the same hard coded "admin_user" string all over your tests.
# It is better to abstract that away into function calls so the same hard coded
# string isn't repeated throughout your code.  This creates a single point of
# maintenance for any config refactoring.
#
#
# This is an example of how you can uses a settings object.
# Here in your test, you can now refer to your admin login
# like this
#
#     login_page.login( get_admin_user(), get_test_admin_password() )
#
# Then when you run on different envionrments or different accounts,
# you can simply pass in a config file that'll specify the value for
# 'admin_user' and 'admin_password'


def get_admin_user():
    return WTF_CONFIG_READER.get("admin_user", "admin")


def get_admin_password():
    return WTF_CONFIG_READER.get("admin_password", "password")


def get_search_provider():
    "Configure this via the 'search_provider' setting."

# Path: wtframework/wtf/config.py
# WTF_CONFIG_READER = ConfigReader()


# Path: tests/testdata/settings.py
from wtframework.wtf.config import WTF_CONFIG_READER

#
#    admin_user = WTF_CONFIG_READER.get("admin_user", "admin")
#
# But you'll have the same hard coded "admin_user" string all over your tests.
# It is better to abstract that away into function calls so the same hard coded
# string isn't repeated throughout your code.  This creates a single point of
# maintenance for any config refactoring.
#
#
# This is an example of how you can uses a settings object.
# Here in your test, you can now refer to your admin login
# like this
#
#     login_page.login( get_admin_user(), get_test_admin_password() )
#
# Then when you run on different envionrments or different accounts,
# you can simply pass in a config file that'll specify the value for
# 'admin_user' and 'admin_password'


def get_admin_user():
    return WTF_CONFIG_READER.get("admin_user", "admin")


def get_admin_password():
    return WTF_CONFIG_READER.get("admin_password", "password")


def get_search_provider():
    "Configure this via the 'search_provider' setting."

    return WTF_CONFIG_READER.get("search_provider", "http://www.google.com")