forked from clrh/supybot-team-meteo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest.py
26 lines (20 loc) · 742 Bytes
/
test.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/usr/bin/python
# -*- coding: utf-8 -*-
###
# Copyright (c) 2014, clrh
# All rights reserved.
#
#
###
from supybot.test import *
class TeamMeteoTestCase(PluginTestCase):
plugins = ('TeamMeteo',)
def setUp(self):
super(TeamMeteoTestCase, self).setUp()
conf.supybot.plugins.TeamMeteo.metricFile.setValue("mock.csv")
def testGetMetrics(self):
self.assertResponse('hlstat','45 en HL: 3 urgent(s), 7 haut(s)')
self.assertResponse('devstat','14 points engagés dont 0 points bonus, 3 points terminés de 2 stories')
def testWhatToDoNow(self):
self.assertResponse('wtdn','3 à intégrer, 1 à tester, 2 à rt, 1 à documenter')
# vim:set shiftwidth=4 tabstop=4 expandtab textwidth=79: