forked from retoor/devplacepy
Quiiz system
This commit is contained in:
@@ -148,7 +148,7 @@ def test_owner_sees_harvest_not_steal(alice):
|
||||
assert page.locator("form[data-game-action='steal']").count() == 0
|
||||
|
||||
|
||||
def test_victim_gets_anonymous_notification(bob):
|
||||
def test_victim_notification_names_the_raider_and_the_amount(bob):
|
||||
page, _ = bob
|
||||
from devplacepy.database import get_table
|
||||
|
||||
@@ -172,4 +172,6 @@ def test_victim_gets_anonymous_notification(bob):
|
||||
user_uid=alice["uid"], type="harvest_stolen"
|
||||
)
|
||||
assert note is not None
|
||||
assert "bob_test" not in note["message"]
|
||||
assert "bob_test" in note["message"]
|
||||
assert "Python Script" in note["message"]
|
||||
assert "harvest it" in note["message"]
|
||||
|
||||
Reference in New Issue
Block a user