aboutsummaryrefslogtreecommitdiff
path: root/bot/tests
diff options
context:
space:
mode:
authorJoachim Filip Ignacy Bartosik <jbartosik@gmail.com>2011-08-02 17:24:28 +0200
committerJoachim Filip Ignacy Bartosik <jbartosik@gmail.com>2011-08-03 10:44:33 +0200
commit2bc0f6162e76a0a2a6c6753b5c5808ddba85ccd0 (patch)
treeaa8ccce6848a8c0c7efb8e7b48171575fba325e9 /bot/tests
parentImprove MeetBot tests (diff)
downloadcouncil-webapp-2bc0f6162e76a0a2a6c6753b5c5808ddba85ccd0.tar.gz
council-webapp-2bc0f6162e76a0a2a6c6753b5c5808ddba85ccd0.tar.bz2
council-webapp-2bc0f6162e76a0a2a6c6753b5c5808ddba85ccd0.zip
Make some more actions available only to council members
Namely #nextitem, #previtem, #changeitem, #startvote, #endvote
Diffstat (limited to 'bot/tests')
-rw-r--r--bot/tests/run_test.py2
-rw-r--r--bot/tests/test_scripts/council_only_actions.json7
2 files changed, 8 insertions, 1 deletions
diff --git a/bot/tests/run_test.py b/bot/tests/run_test.py
index a6077cb..dafcda3 100644
--- a/bot/tests/run_test.py
+++ b/bot/tests/run_test.py
@@ -326,7 +326,7 @@ class MeetBotTest(unittest.TestCase):
def test_message_answer_tests(self):
files = ['agenda_item_changing', 'agenda_option_listing',
'agenda_option_adding', 'agenda_option_removing',
- 'close_voting_after_last_vote']
+ 'close_voting_after_last_vote', 'council_only_actions']
for file in files:
test = self.get_simple_agenda_test()
test.check_responses_from_json_file(file)
diff --git a/bot/tests/test_scripts/council_only_actions.json b/bot/tests/test_scripts/council_only_actions.json
new file mode 100644
index 0000000..ce843a9
--- /dev/null
+++ b/bot/tests/test_scripts/council_only_actions.json
@@ -0,0 +1,7 @@
+[
+["20:13:50 <y> #nextitem", "You can not vote or change agenda. Only x, z can."],
+["20:13:50 <y> #previtem", "You can not vote or change agenda. Only x, z can."],
+["20:13:50 <y> #changeitem 1", "You can not vote or change agenda. Only x, z can."],
+["20:13:50 <y> #startvote", "You can not vote or change agenda. Only x, z can."],
+["20:13:50 <y> #endvote", "You can not vote or change agenda. Only x, z can."]
+]