Replace default leaves with precipitation and procedural snowdrifts

This commit is contained in:
nyan404 committed 2026-11-24 16:50:24 +03:00
1 parent 2c17a52b5e
commit c85876f1db
13 files changed
+329 -83

No files matched your search

+5 -5
View File
@@ -13,15 +13,15 @@ from app.main import BelkiHTTPServer, Handler
class MetarTests(unittest.TestCase):
def test_weather_and_intensity(self):
cases = {
"CAVOK": ("leaves", 1), "-RA": ("rain", 1), "RA": ("rain", 2),
"CAVOK": ("none", 1), "-RA": ("rain", 1), "RA": ("rain", 2),
"+RA": ("rain", 3), "SHRA": ("rain", 3), "-SHRA": ("rain", 1),
"-DZ": ("rain", 1), "FZRA": ("rain", 2), "SN": ("snow", 2),
"+SHSN": ("snow", 3), "BLSN": ("snow", 3), "-SHSN": ("snow", 1),
"RASN": ("mixed", 2), "-RA SN": ("mixed", 2), "BR FG": ("leaves", 1),
"VCSH VCSN VCRA": ("leaves", 1),
"CAVOK TEMPO +SHSN": ("leaves", 1),
"RASN": ("mixed", 2), "-RA SN": ("mixed", 2), "BR FG": ("none", 1),
"VCSH VCSN VCRA": ("none", 1),
"CAVOK TEMPO +SHSN": ("none", 1),
"-RA BECMG +SN": ("rain", 1),
"CAVOK RMK SN RA": ("leaves", 1),
"CAVOK RMK SN RA": ("none", 1),
}
for weather, expected in cases.items():
with self.subTest(weather=weather):