@@ -72,7 +72,7 @@ defmodule Codebattle.Tournament.SeasonTournamentGeneratorRunnerTest do
7272 assert first_rookie . task_strategy == "random"
7373 assert first_rookie . type == "swiss"
7474 assert first_rookie . access_type == "public"
75- assert String . contains? ( first_rookie . name , "Rookie S:" )
75+ assert first_rookie . name == "Rookie"
7676 end
7777
7878 test "challenger tournaments have correct configuration" do
@@ -112,14 +112,14 @@ defmodule Codebattle.Tournament.SeasonTournamentGeneratorRunnerTest do
112112 assert first_pro . level == "easy"
113113 assert first_pro . task_provider == "level"
114114 assert first_pro . task_strategy == "random"
115- assert String . contains? ( first_pro . name , "Pro Weekly" )
115+ assert first_pro . name == "Biweekly Pro"
116116
117- # All pro tournaments should be on Tuesday at 16:00 UTC
117+ # All pro tournaments should be on the 14th or 28th at 16:00 UTC
118118 Enum . each ( pro_tournaments , fn tournament ->
119119 starts_at = tournament . starts_at
120120 date = DateTime . to_date ( starts_at )
121- # Tuesday
122- assert Date . day_of_week ( date ) == 2
121+ # Should be on the 14th or 28th of the month
122+ assert date . day in [ 14 , 28 ]
123123 assert starts_at . hour == 16
124124 assert starts_at . minute == 0
125125 end )
@@ -140,14 +140,14 @@ defmodule Codebattle.Tournament.SeasonTournamentGeneratorRunnerTest do
140140 assert first_elite . level == "medium"
141141 assert first_elite . task_provider == "level"
142142 assert first_elite . task_strategy == "random"
143- assert String . contains? ( first_elite . name , "Elite S:0" )
143+ assert first_elite . name == "Monthly Elite"
144144
145- # All elite tournaments should be on Wednesday at 16:00 UTC
145+ # All elite tournaments should be on the 7th at 16:00 UTC
146146 Enum . each ( elite_tournaments , fn tournament ->
147147 starts_at = tournament . starts_at
148148 date = DateTime . to_date ( starts_at )
149- # Wednesday
150- assert Date . day_of_week ( date ) == 3
149+ # Should be on the 7th of the month
150+ assert date . day == 7
151151 assert starts_at . hour == 16
152152 assert starts_at . minute == 0
153153 end )
@@ -171,12 +171,12 @@ defmodule Codebattle.Tournament.SeasonTournamentGeneratorRunnerTest do
171171 assert String . contains? ( first_masters . name , "Masters" )
172172 assert String . contains? ( first_masters . task_pack_name , "masters_s0_2024_" )
173173
174- # All masters tournaments should be on Thursday at 16:00 UTC
174+ # All masters tournaments should be on the 21st at 16:00 UTC
175175 Enum . each ( masters_tournaments , fn tournament ->
176176 starts_at = tournament . starts_at
177177 date = DateTime . to_date ( starts_at )
178- # Thursday
179- assert Date . day_of_week ( date ) == 4
178+ # Should be on the 21st of the month
179+ assert date . day == 21
180180 assert starts_at . hour == 16
181181 assert starts_at . minute == 0
182182 end )
@@ -197,7 +197,7 @@ defmodule Codebattle.Tournament.SeasonTournamentGeneratorRunnerTest do
197197 assert grand_slam . task_provider == "task_pack"
198198 assert grand_slam . task_strategy == "sequential"
199199 assert grand_slam . task_pack_name == "grand_slam_s0_2024"
200- assert String . contains? ( grand_slam . name , "Grand Slam Season 0 2024" )
200+ assert grand_slam . name == "Grand Slam"
201201
202202 # Should be on the season end date (Dec 21) at 16:00 UTC
203203 starts_at = grand_slam . starts_at
0 commit comments