Eisenhaus335 has uploaded a new change for review. (
https://gerrit.wikimedia.org/r/400595 )
Change subject: Creating daemonize_tests.py
......................................................................
Creating daemonize_tests.py
Change-Id: I1099f775a0f51bbfebb4349239ea8447d0b61b81
---
M tests/daemonize_tests.py
1 file changed, 2 insertions(+), 6 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/pywikibot/core
refs/changes/95/400595/1
diff --git a/tests/daemonize_tests.py b/tests/daemonize_tests.py
index a9a60e1..9254187 100644
--- a/tests/daemonize_tests.py
+++ b/tests/daemonize_tests.py
@@ -1,4 +1,4 @@
-from __future__ import absolute_import, unicode_literals
+from __future__ import absolute_import, unicode_literals, docstring
from pywikibot import daemonize
@@ -10,21 +10,17 @@
daemonize.daemonize()
def test_daemonize_closedstream_true():
daemonize.daemonize(True, True, False, None)
-
def test_daemonize_closedstream_false():
daemonize.daemonize(False, True, False, None)
-
def test_daemonize_changedirectory_true():
daemonize.daemonize(True, True, 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
+ # cannot be tested because spaghetti code
def load_tests(loader, tests, pattern):
test_daemonize_os_exit()
--
To view, visit https://gerrit.wikimedia.org/r/400595
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I1099f775a0f51bbfebb4349239ea8447d0b61b81
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