Ejemplo n.º 1
0
def test_seasonized_url_for_app() -> None:
    with APP.test_request_context('/decks/'):
        assert view.seasonized_url(1) == '/seasons/1/decks/'
        assert view.seasonized_url(rotation.current_season_num()) == '/decks/'
Ejemplo n.º 2
0
def test_seasonized_url_simple() -> None:
    with APP.test_request_context('/tournaments/'):
        assert view.seasonized_url(1) == '/tournaments/'
        assert view.seasonized_url(
            rotation.current_season_num()) == '/tournaments/'