Skip to content

Commit

Permalink
Remove unused imports, unused variables
Browse files Browse the repository at this point in the history
  • Loading branch information
cleborys committed Jun 29, 2021
1 parent 870595b commit f1e1bc6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion server/matchmaker/algorithm/random_newbies.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from typing import Dict, Iterable, List, Tuple

from ..search import Match, Search
from .matchmaker import Matchmaker, MatchmakingPolicy1v1
from .matchmaker import MatchmakingPolicy1v1


class RandomlyMatchNewbies(MatchmakingPolicy1v1):
Expand Down
2 changes: 2 additions & 0 deletions tests/unit_tests/test_matchmaker_algorithm_stable_marriage.py
Original file line number Diff line number Diff line change
Expand Up @@ -329,6 +329,7 @@ def test_partial_newbie_team_matched_with_newbie_team(player_factory):

assert matches[partial_newbie] == newbie
assert matches[newbie] == partial_newbie
assert len(unmatched_searches) == 0


def test_newbie_and_top_rated_team_not_matched_randomly(player_factory):
Expand All @@ -345,6 +346,7 @@ def test_newbie_and_top_rated_team_not_matched_randomly(player_factory):
matches, unmatched_searches = stable_marriage.RandomlyMatchNewbies().find(searches)

assert not matches
assert len(unmatched_searches) == len(searches)


def test_unmatched_newbies_forcefully_match_pros(player_factory):
Expand Down

0 comments on commit f1e1bc6

Please sign in to comment.