pep fixes

This commit is contained in:
Phill Ridout 2015-01-22 18:07:56 +00:00
parent 854537b3e6
commit 92eee52d3f
2 changed files with 3 additions and 1 deletions

View File

@ -262,6 +262,7 @@ class OpenLP(OpenLPMixin, QtGui.QApplication):
else:
return QtGui.QApplication.event(self, event)
def parse_options(args):
"""
Parse the command line arguments
@ -286,6 +287,7 @@ def parse_options(args):
# Parse command line options and deal with them. Use args supplied pragmatically if possible.
return parser.parse_args(args) if args else parser.parse_args()
def set_up_logging(log_path):
"""
Setup our logging using log_path

View File

@ -126,4 +126,4 @@ class TestInit(TestCase, TestMixin):
# THEN: A tuple should be returned with the parsed options and left over args
self.assertEqual(resluts, (Values({'no_error_form': True, 'dev_version': True, 'portable': True,
'style': 'style', 'loglevel': 'debug'}),['extra', 'qt', 'args']))
'style': 'style', 'loglevel': 'debug'}), ['extra', 'qt', 'args']))