Changeset View
Changeset View
Standalone View
Standalone View
swh/web/tests/common/test_utils.py
# Copyright (C) 2017-2022 The Software Heritage developers | # Copyright (C) 2017-2022 The Software Heritage developers | ||||
# See the AUTHORS file at the top-level directory of this distribution | # See the AUTHORS file at the top-level directory of this distribution | ||||
# License: GNU Affero General Public License version 3, or any later version | # License: GNU Affero General Public License version 3, or any later version | ||||
# See top-level LICENSE file for more information | # See top-level LICENSE file for more information | ||||
from base64 import b64encode | from base64 import b64encode | ||||
import datetime | import datetime | ||||
import math | import math | ||||
import sys | import sys | ||||
from urllib.parse import quote | from urllib.parse import quote | ||||
import pytest | import pytest | ||||
from django.conf.urls import url | |||||
from django.test.utils import override_settings | from django.test.utils import override_settings | ||||
from django.urls import re_path as url | |||||
from django.urls.exceptions import NoReverseMatch | from django.urls.exceptions import NoReverseMatch | ||||
from swh.web.common import utils | from swh.web.common import utils | ||||
from swh.web.common.exc import BadInputExc | from swh.web.common.exc import BadInputExc | ||||
from swh.web.config import SWH_WEB_SERVER_NAME, SWH_WEB_STAGING_SERVER_NAMES, get_config | from swh.web.config import SWH_WEB_SERVER_NAME, SWH_WEB_STAGING_SERVER_NAMES, get_config | ||||
def test_shorten_path_noop(): | def test_shorten_path_noop(): | ||||
▲ Show 20 Lines • Show All 370 Lines • Show Last 20 Lines |