Anshoe has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/183022

Change subject: Added testing for Autonomous mode in flickrripper.py
......................................................................

Added testing for Autonomous mode in flickrripper.py

Change-Id: Ia0947a1d29ab43759bc8b9a81f84831e0ac8e614
---
A tests/flickrripper_tests.py
1 file changed, 27 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/pywikibot/core 
refs/changes/22/183022/1

diff --git a/tests/flickrripper_tests.py b/tests/flickrripper_tests.py
new file mode 100644
index 0000000..c8ec229
--- /dev/null
+++ b/tests/flickrripper_tests.py
@@ -0,0 +1,27 @@
+"""Tests for the Flickrripper.py"""
+#
+# (C) Pywikibot team, 2008-2014
+#
+#Distributed under the terms of the MIT License
+
+import pywikibot
+
+from scrips.flickrripper import *
+
+class FlickrripperTests:
+
+       """Test flickrripper.py"""
+
+       def autonomous_test(self):
+               """Tests to check if autonomous mode works properly"""
+       autonomous = True
+       processPhoto()
+       self.assertTrue(newPhotoDescription == photoDescription)
+       self.assertTrue(newFilename == filename)
+       self.assertTrue(skip == False)
+
+if __name__ == '__main__':
+       try:
+               unittest.main()
+               except SystemExit:
+                       pass
\ No newline at end of file

-- 
To view, visit https://gerrit.wikimedia.org/r/183022
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ia0947a1d29ab43759bc8b9a81f84831e0ac8e614
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: Anshoe <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to