From 4ad71df50b60e27c7ecd0e4ccc78e73917bc1d87 Mon Sep 17 00:00:00 2001 From: Gabriel Augendre Date: Tue, 5 Mar 2024 19:01:18 +0100 Subject: [PATCH] Update test_interactions.py --- src/party/tests/test_interactions.py | 31 ---------------------------- 1 file changed, 31 deletions(-) diff --git a/src/party/tests/test_interactions.py b/src/party/tests/test_interactions.py index 3b6aefb..c86984c 100644 --- a/src/party/tests/test_interactions.py +++ b/src/party/tests/test_interactions.py @@ -285,37 +285,6 @@ def test_gm_can_delete_any_existing_effect( BattleEffect.objects.get(pk=effects[1].pk) -@pytest.mark.django_db() -def test_player_cant_change_existing_running_effect( - selenium: WebDriver, - live_server: LiveServer, -): - """Members of the group can only view existing running effects, no update.""" - user, password = "player", "password" - player = User.objects.create_user(user, password=password) - character = baker.make(Character, player=player) - party = baker.make(Party) - party.characters.set([character]) - effects = baker.make(BattleEffect, _quantity=2, party=party) - - go_to_party(selenium, live_server, party, user, password) - effect = effects[0] - effect_element = selenium.find_element( - By.CSS_SELECTOR, - f'.effect[data-id="{effect.pk}"]', - ) - assert effect.name in effect_element.text - assert effect.target in effect_element.text - assert effect.description in effect_element.text - - with pytest.raises(NoSuchElementException): - selenium.find_element(By.CSS_SELECTOR, ".effect .delete") - with pytest.raises(NoSuchElementException): - selenium.find_element(By.ID, "increase-rounds") - with pytest.raises(NoSuchElementException): - selenium.find_element(By.ID, "decrease-rounds") - - def fill_effect( selenium: WebDriver, name: str,