* [gentoo-commits] proj/council-webapp:master commit in: bot/tests/
@ 2011-06-18 15:46 Petteri Räty
0 siblings, 0 replies; 3+ messages in thread
From: Petteri Räty @ 2011-06-18 15:46 UTC (permalink / raw
To: gentoo-commits
commit: 818179e3145fba21c48a56b0e85cca93e0ddd59d
Author: Joachim Filip Ignacy Bartosik <jbartosik <AT> gmail <DOT> com>
AuthorDate: Thu Jun 16 15:18:53 2011 +0000
Commit: Petteri Räty <betelgeuse <AT> gentoo <DOT> org>
CommitDate: Thu Jun 16 15:18:53 2011 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/council-webapp.git;a=commit;h=818179e3
Fix TestMeeting class
---
bot/tests/test_meeting.py | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/bot/tests/test_meeting.py b/bot/tests/test_meeting.py
index 78bd2dc..238ba2f 100644
--- a/bot/tests/test_meeting.py
+++ b/bot/tests/test_meeting.py
@@ -5,13 +5,13 @@ import time
class TestMeeting:
logline_re = re.compile(r'\[?([0-9: ]*)\]? *<[@+]?([^>]+)> *(.*)')
loglineAction_re = re.compile(r'\[?([0-9: ]*)\]? *\* *([^ ]+) *(.*)')
- M = meeting.process_meeting(contents = '',
- channel = "#none", filename = '/dev/null',
- dontSave = True, safeMode = False,
- extraConfig = {})
log = []
def __init__(self):
+ self.M = meeting.process_meeting(contents = '',
+ channel = "#none", filename = '/dev/null',
+ dontSave = True, safeMode = False,
+ extraConfig = {})
self.M._sendReply = lambda x: self.log.append(x)
self.M.starttime = time.gmtime(0)
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [gentoo-commits] proj/council-webapp:master commit in: bot/tests/
@ 2011-07-13 16:01 Petteri Räty
0 siblings, 0 replies; 3+ messages in thread
From: Petteri Räty @ 2011-07-13 16:01 UTC (permalink / raw
To: gentoo-commits
commit: 2d0ea3df264d8dea133f503ca6fe47279e33e1d2
Author: Joachim Filip Ignacy Bartosik <jbartosik <AT> gmail <DOT> com>
AuthorDate: Wed Jul 13 14:29:40 2011 +0000
Commit: Petteri Räty <betelgeuse <AT> gentoo <DOT> org>
CommitDate: Wed Jul 13 15:39:26 2011 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/council-webapp.git;a=commit;h=2d0ea3df
Test for multiple reminders
---
bot/tests/run_test.py | 13 +++++++++++++
1 files changed, 13 insertions(+), 0 deletions(-)
diff --git a/bot/tests/run_test.py b/bot/tests/run_test.py
index bd116ff..0d18cce 100644
--- a/bot/tests/run_test.py
+++ b/bot/tests/run_test.py
@@ -519,6 +519,19 @@ class MeetBotTest(unittest.TestCase):
test.process('20:13:50 <x> #nextitem')
+ def test_multiple_reminders(self):
+ test = self.get_simple_agenda_test()
+ test.process('20:13:50 <x> #timelimit add 0:1 message')
+ test.process('20:13:50 <x> #timelimit add 0:2 other message')
+ test.process('20:13:50 <x> #timelimit add 0:3 yet another message')
+ test.log = []
+ time.sleep(4)
+ expected_messages = ['message', 'other message', 'yet another message']
+ messages_match = (expected_messages == test.log)
+ error_msg = 'Received messages ' + str(test.log) + \
+ ' didn\'t match expected ' + str(expected_messages)
+ assert messages_match, error_msg
+
if __name__ == '__main__':
os.chdir(os.path.join(os.path.dirname(__file__), '.'))
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [gentoo-commits] proj/council-webapp:master commit in: bot/tests/
@ 2011-07-28 19:42 Petteri Räty
0 siblings, 0 replies; 3+ messages in thread
From: Petteri Räty @ 2011-07-28 19:42 UTC (permalink / raw
To: gentoo-commits
commit: 98c8db34bdd0c7287ba4ffaf3f7d3f720cc01cec
Author: Joachim Filip Ignacy Bartosik <jbartosik <AT> gmail <DOT> com>
AuthorDate: Mon Jul 25 13:20:27 2011 +0000
Commit: Petteri Räty <betelgeuse <AT> gentoo <DOT> org>
CommitDate: Mon Jul 25 13:21:38 2011 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/council-webapp.git;a=commit;h=98c8db34
Fix failing supybot test
---
bot/tests/run_test.py | 13 +++++++++----
1 files changed, 9 insertions(+), 4 deletions(-)
diff --git a/bot/tests/run_test.py b/bot/tests/run_test.py
index 136e135..3f84ccb 100644
--- a/bot/tests/run_test.py
+++ b/bot/tests/run_test.py
@@ -54,16 +54,21 @@ class MeetBotTest(unittest.TestCase):
doesn't have a useful status code, so I need to parse the
output.
"""
- os.symlink("../MeetBot", "MeetBot")
- os.symlink("../ircmeeting", "ircmeeting")
+
+ links_to_remove = []
+ for file in ["MeetBot", "ircmeeting"]:
+ if not os.path.exists(file):
+ os.symlink("../" + file , file)
+ links_to_remove.append(file)
+
sys.path.insert(0, ".")
try:
output = os.popen("supybot-test ./MeetBot 2>&1").read()
assert 'FAILED' not in output, "supybot-based tests failed."
assert '\nOK\n' in output, "supybot-based tests failed."
finally:
- os.unlink("MeetBot")
- os.unlink("ircmeeting")
+ for link in links_to_remove:
+ os.unlink(link)
del sys.path[0]
trivial_contents = """
^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-07-28 20:02 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-07-13 16:01 [gentoo-commits] proj/council-webapp:master commit in: bot/tests/ Petteri Räty
-- strict thread matches above, loose matches on Subject: below --
2011-07-28 19:42 Petteri Räty
2011-06-18 15:46 Petteri Räty
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox