Permalink
Browse files

fix tests

1 parent a1c140e commit bfdd544251fc468df7bd53b8f8f0a698672701a8 @pajlada committed Dec 23, 2016
Showing with 3 additions and 0 deletions.
  1. +1 −0 main.py
  2. +1 −0 pajbot/web/utils.py
  3. +1 −0 tests/tests.py
View
@@ -53,6 +53,7 @@ def on_sigterm(signal, frame):
def handle_exceptions(exctype, value, tb):
log.error('Logging an uncaught exception', exc_info=(exctype, value, tb))
+
if __name__ == '__main__':
from pajbot.utils import init_logging
View
@@ -189,6 +189,7 @@ def jsonify_list(key, query, base_url=None,
return payload
+
paginate_parser = reqparse.RequestParser()
paginate_parser.add_argument('limit', type=int, required=False)
paginate_parser.add_argument('offset', type=int, required=False)
View
@@ -167,5 +167,6 @@ def test_message_action_parse(self):
self.assertEqual(response, data['result'], 'Got output "{}", expected "{}"'.format(response, data['result']))
"""
+
if __name__ == '__main__':
unittest2.main()

0 comments on commit bfdd544

Please sign in to comment.