Skip to content

Commit 3fa924c

Browse files
author
Federico Delgado
committed
modified tests file structure to run using nose. Previous instructions ran consistently only for Python 2.
1 parent adbcf02 commit 3fa924c

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

tests/__init__.py

Lines changed: 0 additions & 4 deletions
This file was deleted.

tests/client.py renamed to tests/test_client.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,5 +186,6 @@ def test_upload_creative(self):
186186

187187

188188
if __name__ == '__main__':
189-
# run this using python -m unittest -v tests from the root dir
189+
# To run these tests. Install nose (pip install nose)
190+
# and run nosetests -sxv tests/ from the root dir
190191
unittest.main()

tests/clientfromfile.py renamed to tests/test_clientfromfile.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,5 +93,6 @@ def test_loads_optional_options(self):
9393

9494

9595
if __name__ == '__main__':
96-
# run this using python -m unittest -v tests from the root dir
96+
# To run these tests. Install nose (pip install nose)
97+
# and run nosetests -sxv tests/ from the root dir
9798
unittest.main()

0 commit comments

Comments
 (0)