Skip to content

Commit

Permalink
undo small change, run black
Browse files Browse the repository at this point in the history
  • Loading branch information
evemartin committed Aug 30, 2024
1 parent 938e26f commit 9d5e90b
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions game/end_to_end_tests/test_level_editor.py
Original file line number Diff line number Diff line change
Expand Up @@ -291,8 +291,7 @@ def test_electric_fuel_gauge(self):
assert "visibility: visible" in electric_fuel_gauge.get_attribute("style")

def test_pigeon(self):
""" Test that cows on the map automatically become pigeons when the theme is changed to "city"
"""
"""Test that cows on the map automatically become pigeons when the theme is changed to "city" """
page = self.go_to_level_editor()
page.go_to_scenery_tab()

Expand All @@ -302,15 +301,18 @@ def test_pigeon(self):
)
ActionChains(self.selenium).drag_and_drop(source_cow, end_space).perform()

scenery_animal = self.selenium.find_elements(
scenery_cow = self.selenium.find_elements(
By.CSS_SELECTOR, "image[x='0'][y='0']"
)
cow_link = scenery_animal[0].get_attribute("href")
cow_link = scenery_cow[0].get_attribute("href")
assert cow_link == "/static/game/raphael_image/Clarice.svg"

Select(self.selenium.find_element(By.ID, "theme_select")).select_by_value(
"city"
)

pigeon_link = scenery_animal[0].get_attribute("href")
scenery_pigeon = self.selenium.find_elements(
By.CSS_SELECTOR, "image[x='0'][y='0']"
)
pigeon_link = scenery_pigeon[0].get_attribute("href")
assert pigeon_link == "/static/game/raphael_image/pigeon.svg"

0 comments on commit 9d5e90b

Please sign in to comment.