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

Change subject: Creating daemonize_tests.py
......................................................................

Creating daemonize_tests.py

Change-Id: Idc867df606a8cfa2d392d41b67710bed2f3570b5
---
M tests/daemonize_tests.py
1 file changed, 18 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/pywikibot/core 
refs/changes/99/400599/1

diff --git a/tests/daemonize_tests.py b/tests/daemonize_tests.py
index baf2506..50a1a25 100644
--- a/tests/daemonize_tests.py
+++ b/tests/daemonize_tests.py
@@ -1,29 +1,47 @@
 # -*- coding: utf-8 -*-
 
+"""
+Test for daemonize
+"""
+
 from __future__ import absolute_import, unicode_literals
 
 from pywikibot import daemonize
 
 import os
 
+
 def test_daemonize_os_exit():
     os.fork()
     daemonize.daemonize()
     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
 
+
 def load_tests(loader, tests, pattern):
     test_daemonize_os_exit()
     test_daemonize_closedstream_true()

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Idc867df606a8cfa2d392d41b67710bed2f3570b5
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