-
-
Notifications
You must be signed in to change notification settings - Fork 152
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
Labels
Milestone
Comments
The solution might be like this http://stackoverflow.com/questions/36141024/how-to-pass-environment-variables-to-pytest |
Added in #96 User will be able to set config via ENV variables using two approaches:
Just need to create pytest.ini file in the project root and with such content:
|
How first option will look in windows cmd? :-)
…On Fri, Feb 17, 2017, 8:41 AM Serhii Pirohov ***@***.***> wrote:
Added in #96 <#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 and set variables:
[pytest]
env=
selene_browser=chrome
selene_hold_brower_open=True
...
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#51 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AB3snpDJi-9guU6gEcgPLqcp84aiZK8Iks5rdaN8gaJpZM4Ljb6v>
.
|
Did not get it? Any problems with Windows? |
I meant this:
http://superuser.com/questions/223104/setting-environment-variable-for-just-one-command-in-windows-cmd-exe
:)
пт, 17 лют. 2017 о 09:21 Serhii Pirohov <[email protected]> пише:
… Did not get it? Any problems with Windows?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#51 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AB3snh44hLCzCnGWuZcqYomF6T2snxWNks5rdazcgaJpZM4Ljb6v>
.
|
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
No description provided.
The text was updated successfully, but these errors were encountered: