Skip to content

Commit

Permalink
Still some...
Browse files Browse the repository at this point in the history
  • Loading branch information
mohierf committed Oct 19, 2016
1 parent 3ef4e67 commit 720a52b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions alignak/daemon.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,8 @@ def get_all_groups():
:rtype: list
"""
return getgrall()
except ImportError, exp: # Like in nt system
except ImportError, exp: # pragma: no cover, not for unit tests...
# Like in Windows system
# temporary workaround:
def get_cur_user():
"""Fake getpwuid
Expand Down Expand Up @@ -154,6 +155,7 @@ class InvalidPidFile(Exception):
DEFAULT_WORK_DIR = './'


# pragma: no cover, not for unit tests...
class Daemon(object): # pylint: disable=R0902
"""Class providing daemon level call for Alignak
TODO: Consider clean this code and use standard libs
Expand Down Expand Up @@ -1228,7 +1230,7 @@ def get_objects_from_from_queues(self):
self.add(obj)
return had_some_objects

def setup_alignak_logger(self):
def setup_alignak_logger(self): # pragma: no cover, not for unit tests...
""" Setup alignak logger:
- load the daemon configuration file
- configure the global daemon handler (root logger)
Expand Down

0 comments on commit 720a52b

Please sign in to comment.