Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
vtm9 committed Mar 1, 2025
1 parent 870d3f5 commit 7b39cb9
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
4 changes: 2 additions & 2 deletions services/app/apps/codebattle/lib/codebattle/user.ex
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ defmodule Codebattle.User do
field(:github_id, :integer)
field(:github_name, :string)
field(:is_bot, :boolean, default: false)
field(:lang, :string, default: "python")
field(:lang, :string, default: "js")
field(:name, :string)
field(:password_hash, :string)
field(:public_id, :binary_id)
Expand Down Expand Up @@ -134,7 +134,7 @@ defmodule Codebattle.User do
id: @guest_id,
name: "John Doe",
subscription_type: :free,
lang: "python",
lang: "js",
rating: 0,
rank: 0,
sound_settings: %SoundSettings{}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ defmodule CodebattleWeb.Integration.Tournament.ArenaClan95PercentileTest do

assert %{
matches: [],
players: [],
players: [_p1, _p2, _p3, _p4, _p5, _p6],
ranking: %{
page_size: 10,
entries: [
Expand All @@ -112,6 +112,7 @@ defmodule CodebattleWeb.Integration.Tournament.ArenaClan95PercentileTest do
tournament: %{
access_type: "public",
type: "arena",
players_count: 6,
state: "waiting_participants",
break_state: "off",
current_round_position: 0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ defmodule CodebattleWeb.Integration.Tournament.ArenaClanTest do
^c3_id => %{id: ^c3_id, name: "c3", long_name: "cl3"}
},
matches: [],
players: [],
players: [_p1, _p2, _p3, _p4, _p5, _p6],
ranking: %{
page_size: 10,
entries: [
Expand All @@ -109,6 +109,7 @@ defmodule CodebattleWeb.Integration.Tournament.ArenaClanTest do
tournament: %{
access_type: "public",
type: "arena",
players_count: 6,
state: "waiting_participants",
break_state: "off",
current_round_position: 0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ defmodule CodebattleWeb.Integration.Tournament.SwissClan95PercentileTest do

assert %{
matches: [],
players: [],
players: [_p1, _p2, _p3, _p4, _p5, _p6],
ranking: %{
page_size: 10,
entries: [
Expand All @@ -110,6 +110,7 @@ defmodule CodebattleWeb.Integration.Tournament.SwissClan95PercentileTest do
access_type: "public",
type: "swiss",
state: "waiting_participants",
players_count: 6,
break_state: "off",
current_round_position: 0
}
Expand Down

0 comments on commit 7b39cb9

Please sign in to comment.