Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions src/poke_env/environment/weather.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
"""This module defines the Weather class, which represents a in-battle weather."""

import logging
from enum import Enum, auto, unique
from enum import Enum, auto


@unique
class Weather(Enum):
"""Enumeration, represent a non null weather in a battle."""

Expand All @@ -15,7 +14,7 @@ class Weather(Enum):
PRIMORDIALSEA = auto()
RAINDANCE = auto()
SANDSTORM = auto()
SNOWSCAPE = auto()
SNOWSCAPE = SNOW = auto()
SUNNYDAY = auto()

def __str__(self) -> str:
Expand Down
1 change: 1 addition & 0 deletions unit_tests/environment/test_enumerations.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,7 @@ def test_side_condition_build():

def test_weather_str():
assert str(Weather["HAIL"])
assert Weather.SNOW == Weather.SNOWSCAPE
assert Weather["UNKNOWN"] == Weather.from_showdown_message("hehehe")


Expand Down
Loading