commit
b2f6863c2b
2 changed files with 5 additions and 5 deletions
|
@ -34,7 +34,9 @@ The "-c" lets you stop the tests gracefully with \[CTRL\]-c.
|
|||
The easiest way to run a subset of the tests is with nose:
|
||||
|
||||
cd /path/to/openphoto-python
|
||||
nosetests -v -s tests/test_albums.py:TestAlbums.test_view
|
||||
nosetests -v -s --nologcapture tests/test_albums.py:TestAlbums.test_view
|
||||
|
||||
All HTTP requests and responses are recorded in the file "tests.log".
|
||||
|
||||
---------------------------------------
|
||||
<a name="test_details"></a>
|
||||
|
|
|
@ -7,12 +7,11 @@ try:
|
|||
except ImportError:
|
||||
print ("********************************************************************\n"
|
||||
"You need to create a 'tokens.py' file containing the following:\n\n"
|
||||
" host = \"<test_url>\"\n"
|
||||
" host = \"<hostname>\"\n"
|
||||
" consumer_key = \"<test_consumer_key>\"\n"
|
||||
" consumer_secret = \"<test_consumer_secret>\"\n"
|
||||
" token = \"<test_token>\"\n"
|
||||
" token_secret = \"<test_token_secret>\"\n"
|
||||
" host = \"<hostname>\"\n\n"
|
||||
"WARNING: Don't use a production OpenPhoto instance for this!\n"
|
||||
"********************************************************************\n")
|
||||
raise
|
||||
|
@ -27,7 +26,6 @@ class TestBase(unittest.TestCase):
|
|||
unittest.TestCase.__init__(self, *args, **kwds)
|
||||
self.photos = []
|
||||
|
||||
LOG_FILENAME = "tests.log"
|
||||
logging.basicConfig(filename="tests.log",
|
||||
filemode="w",
|
||||
format="%(message)s",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue