Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add ability to specify config options via env variables #51

Closed
yashaka opened this issue Jan 13, 2017 · 5 comments
Closed

add ability to specify config options via env variables #51

yashaka opened this issue Jan 13, 2017 · 5 comments

Comments

@yashaka
Copy link
Owner

yashaka commented Jan 13, 2017

No description provided.

@SergeyPirogov
Copy link
Contributor

@SergeyPirogov SergeyPirogov added this to the v1-0-stable milestone Feb 17, 2017
@SergeyPirogov
Copy link
Contributor

SergeyPirogov commented Feb 17, 2017

Added in #96

User will be able to set config via ENV variables using two approaches:

  1. Using CMD
selene_browser=chrome selene_hold_browser_open=True py.test  /tests
  1. Using pytest-env plugin:
    https://github.com/MobileDynasty/pytest-env

Just need to create pytest.ini file in the project root and with such content:

[pytest]
env=
      selene_browser=chrome
      selene_hold_brower_open=True
     ...

@yashaka
Copy link
Owner Author

yashaka commented Feb 17, 2017 via email

@SergeyPirogov
Copy link
Contributor

Did not get it? Any problems with Windows?

@yashaka
Copy link
Owner Author

yashaka commented Feb 17, 2017 via email

yashaka added a commit that referenced this issue Feb 23, 2017
…recated config.app_host, now the config.base_url should be used
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants