Skip to content

Commit

Permalink
Tests: Improve template coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
UEWBot committed Jan 6, 2024
1 parent 2bb69da commit f26f376
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions visualiser/tournament/test_tournament_player_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

from tournament.diplomacy.models.game_set import GameSet
from tournament.diplomacy.models.great_power import GreatPower
from tournament.models import DrawSecrecy, PowerAssignMethods
from tournament.models import DrawSecrecy, PowerAssignMethods, Formats
from tournament.models import Tournament, TournamentPlayer
from tournament.models import Round, RoundPlayer, Game, GamePlayer
from tournament.models import CentreCount, DrawProposal
Expand Down Expand Up @@ -133,7 +133,8 @@ def setUpTestData(cls):
tournament=cls.t1,
uuid_str=str(uuid.uuid4()))
cls.tp12 = TournamentPlayer.objects.create(player=p3,
tournament=cls.t1)
tournament=cls.t1,
backstabbr_username='player_3')
cls.tp11.awards.add(a1)
cls.tp11.awards.add(a2)

Expand All @@ -145,6 +146,7 @@ def setUpTestData(cls):
tournament_scoring_system=T_SCORING_SYSTEMS[0].name,
draw_secrecy=DrawSecrecy.SECRET,
power_assignment=PowerAssignMethods.PREFERENCES,
format=Formats.VFTF,
is_published=False)
cls.r21 = Round.objects.create(tournament=cls.t2,
start=cls.t2.start_date,
Expand Down

0 comments on commit f26f376

Please sign in to comment.