parent
66f911ab7c
commit
adc00f2d54
@ -400,7 +400,7 @@ def test_stop_review_no_review(bot):
|
|||||||
|
|
||||||
|
|
||||||
def test_missing_no_review(bot):
|
def test_missing_no_review(bot):
|
||||||
bot.test_public_message(bot.channel, OWNER, "!manquants")
|
bot.test_public_message(bot.channel, OWNER, "!manquantes")
|
||||||
assert not bot.review.is_started
|
assert not bot.review.is_started
|
||||||
assert len(bot.answers) == 1
|
assert len(bot.answers) == 1
|
||||||
assert bot.answers[0].message == f"{OWNER}, pas de revue en cours."
|
assert bot.answers[0].message == f"{OWNER}, pas de revue en cours."
|
||||||
@ -409,7 +409,7 @@ def test_missing_no_review(bot):
|
|||||||
def test_missing_no_topic(bot):
|
def test_missing_no_topic(bot):
|
||||||
bot.test_public_message(bot.channel, OWNER, "!start")
|
bot.test_public_message(bot.channel, OWNER, "!start")
|
||||||
assert bot.review.is_started
|
assert bot.review.is_started
|
||||||
bot.test_public_message(bot.channel, OWNER, "!manquants")
|
bot.test_public_message(bot.channel, OWNER, "!manquantes")
|
||||||
assert len(bot.answers) == 1
|
assert len(bot.answers) == 1
|
||||||
assert bot.answers[0].message == "% Pas de sujet en cours."
|
assert bot.answers[0].message == "% Pas de sujet en cours."
|
||||||
|
|
||||||
@ -419,7 +419,7 @@ def test_missing_no_one_is_missing(bot):
|
|||||||
bot.test_public_message(bot.channel, OWNER, "## collective topic")
|
bot.test_public_message(bot.channel, OWNER, "## collective topic")
|
||||||
bot.test_public_message(bot.channel, SENDER, "This is my message")
|
bot.test_public_message(bot.channel, SENDER, "This is my message")
|
||||||
bot.test_public_message(bot.channel, OWNER, "This is owner message")
|
bot.test_public_message(bot.channel, OWNER, "This is owner message")
|
||||||
bot.test_public_message(bot.channel, OWNER, "!manquants")
|
bot.test_public_message(bot.channel, OWNER, "!manquantes")
|
||||||
assert len(bot.answers) == 1
|
assert len(bot.answers) == 1
|
||||||
assert bot.answers[0].message == "% Tout le monde s'est exprimé sur le sujet courant \\o/"
|
assert bot.answers[0].message == "% Tout le monde s'est exprimé sur le sujet courant \\o/"
|
||||||
|
|
||||||
@ -431,7 +431,7 @@ def test_missing_one_is_missing(bot):
|
|||||||
bot.test_public_message(bot.channel, OWNER, "This is owner message")
|
bot.test_public_message(bot.channel, OWNER, "This is owner message")
|
||||||
bot.test_public_message(bot.channel, OWNER, "## a second collective topic")
|
bot.test_public_message(bot.channel, OWNER, "## a second collective topic")
|
||||||
bot.test_public_message(bot.channel, OWNER, "This is the second owner message")
|
bot.test_public_message(bot.channel, OWNER, "This is the second owner message")
|
||||||
bot.test_public_message(bot.channel, OWNER, "!manquants")
|
bot.test_public_message(bot.channel, OWNER, "!manquantes")
|
||||||
assert len(bot.answers) == 1
|
assert len(bot.answers) == 1
|
||||||
assert bot.answers[0].message == (
|
assert bot.answers[0].message == (
|
||||||
"% Personnes participantes ne s'étant pas exprimées sur le "
|
"% Personnes participantes ne s'étant pas exprimées sur le "
|
||||||
|
Loading…
Reference in New Issue
Block a user