def test_get_player_id_fails(self, mock_requests): q = UniverseQuestions(self.universe_id, self.community) with pytest.raises(IndexError): q.get_player_id(self.player_name + "suffix")
def test_get_player_id(self, mock_requests): q = UniverseQuestions(self.universe_id, self.community) result = q.get_player_id(self.player_name) assert result == self.play_id