From 483d0bf847f5151d3231d016f1dbb9ff0ce84d40 Mon Sep 17 00:00:00 2001 From: sneakypete81 Date: Sat, 4 May 2013 14:48:47 +0200 Subject: [PATCH] Update test README with config file details --- tests/README.markdown | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/tests/README.markdown b/tests/README.markdown index 92e250f..4d722a4 100644 --- a/tests/README.markdown +++ b/tests/README.markdown @@ -5,23 +5,27 @@ Tests for the Open Photo API / Python Library ---------------------------------------- ### Requirements -A computer, Python 2.7 and an empty OpenPhoto instance. +A computer, Python 2.7 and an empty OpenPhoto test host. --------------------------------------- ### Setting up -Create a tests/tokens.py file containing the following: +Create a ``~/.config/openphoto/test`` config file containing the following: - # tests/tokens.py - consumer_key = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" - consumer_secret = "xxxxxxxxxx" - token = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" - token_secret = "xxxxxxxxxx" - host = "your_hostname" + # ~/.config/openphoto/test + host = your.host.com + consumerKey = your_consumer_key + consumerSecret = your_consumer_secret + token = your_access_token + tokenSecret = your_access_token_secret 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 + --------------------------------------- ### Running the tests