test_get_frontend_player_game.py 439 B

12345678910111213
  1. # -*- coding: utf-8 -*-
  2. from q3stats.testing import BaseQ3StatsWebAppTestCase
  3. class Test_GetFrontendPlayerGame(BaseQ3StatsWebAppTestCase):
  4. def test_ok(self):
  5. with self.app.test_request_context():
  6. rsp = self.client.get('/players/tomekwojcik/game/spam')
  7. assert rsp.status_code == 302
  8. assert rsp.headers['Location'].endswith(
  9. '/#/players/tomekwojcik/game/spam'
  10. )