Eisenhaus335 has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/400591 )

Change subject: Creating daemonzie_tests.py
......................................................................

Creating daemonzie_tests.py

Change-Id: I012da1d7740990f072337b0525b5873c35b0c16f
---
M tests/daemonize_tests.py
1 file changed, 20 insertions(+), 17 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/pywikibot/core 
refs/changes/91/400591/1

diff --git a/tests/daemonize_tests.py b/tests/daemonize_tests.py
index a83491f..a4fb615 100644
--- a/tests/daemonize_tests.py
+++ b/tests/daemonize_tests.py
@@ -1,30 +1,33 @@
-import pywikibot
 from pywikibot import daemonize
 import os
 
 def test_daemonize_os_exit():
-   os.fork()
-   daemonize.daemonize()
+    os.fork()
+    daemonize.daemonize()
+    daemonize.daemonize()
 def test_daemonize_closedstream_true():
-   daemonize.daemonize(True, True, False, None)
+    daemonize.daemonize(True, True, False, None)
 
 def test_daemonize_closedstream_false():
-   daemonize.daemonize(False, True, False, None)
+    daemonize.daemonize(False, True, False, None)
 
 def test_daemonize_changedirectory_true():
-   daemonize.daemonize(True, True, False, None)
+    daemonize.daemonize(True, True, False, None)
 
-def test_daemonize_changeddirectory_false():
-   daemonize.daemonize(True, False, False, None)
+def test_daemonize_changeddirectory_false(): 
+    daemonize.daemonize(True, False, False, None)
 
+def test_redirectstd_true():
+    daemonize.daemonize(True, True, False, "Test")
 def test_daemonize_writepid_True():
-   os.fork()
-   """cannot be tested because spaghetti code"""
+    os.fork()
+    #cannot be tested because spaghetti code
 
-def load_tests(loader, tests, pattern):
-   test_daemonize_os_exit()
-   test_daemonize_closedstream_true()
-   test_daemonize_closedstream_false()
-   test_daemonize_changedirectory_true()
-   test_daemonize_changeddirectory_false()
-   test_daemonize_writepid_True()
+def load_tests(loader, tests, pattern): 
+    test_daemonize_os_exit()
+    test_daemonize_closedstream_true()
+    test_daemonize_closedstream_false()
+    test_daemonize_changedirectory_true()
+    test_daemonize_changeddirectory_false()
+    test_daemonize_writepid_True()
+    test_redirectstd_true()

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

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

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

Reply via email to