Update test README with config file details
This commit is contained in:
parent
ab77ef9d87
commit
483d0bf847
1 changed files with 12 additions and 8 deletions
|
@ -5,23 +5,27 @@ Tests for the Open Photo API / Python Library
|
||||||
----------------------------------------
|
----------------------------------------
|
||||||
<a name="requirements"></a>
|
<a name="requirements"></a>
|
||||||
### Requirements
|
### Requirements
|
||||||
A computer, Python 2.7 and an empty OpenPhoto instance.
|
A computer, Python 2.7 and an empty OpenPhoto test host.
|
||||||
|
|
||||||
---------------------------------------
|
---------------------------------------
|
||||||
<a name="setup"></a>
|
<a name="setup"></a>
|
||||||
### Setting up
|
### Setting up
|
||||||
|
|
||||||
Create a tests/tokens.py file containing the following:
|
Create a ``~/.config/openphoto/test`` config file containing the following:
|
||||||
|
|
||||||
# tests/tokens.py
|
# ~/.config/openphoto/test
|
||||||
consumer_key = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
|
host = your.host.com
|
||||||
consumer_secret = "xxxxxxxxxx"
|
consumerKey = your_consumer_key
|
||||||
token = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
|
consumerSecret = your_consumer_secret
|
||||||
token_secret = "xxxxxxxxxx"
|
token = your_access_token
|
||||||
host = "your_hostname"
|
tokenSecret = your_access_token_secret
|
||||||
|
|
||||||
Make sure this is an empty test server, **not a production OpenPhoto server!!!**
|
Make sure this is an empty test server, **not a production OpenPhoto server!!!**
|
||||||
|
|
||||||
|
You can specify an alternate test config file with the following environment variable:
|
||||||
|
|
||||||
|
export OPENPHOTO_TEST_CONFIG=test2
|
||||||
|
|
||||||
---------------------------------------
|
---------------------------------------
|
||||||
<a name="running"></a>
|
<a name="running"></a>
|
||||||
### Running the tests
|
### Running the tests
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue