File tree Expand file tree Collapse file tree 4 files changed +12
-12
lines changed Expand file tree Collapse file tree 4 files changed +12
-12
lines changed Original file line number Diff line number Diff line change 11"""
22Traitlets based configuration for jupyter_server_proxy
33"""
4+ import sys
45from collections import namedtuple
56from warnings import warn
67
7- import sys
8-
98if sys .version_info < (3 , 10 ): # pragma: no cover
109 from importlib_metadata import entry_points
1110else : # pragma: no cover
Original file line number Diff line number Diff line change 11"""Reusable test fixtures for ``jupyter_server_proxy``."""
2+ import os
3+ import shutil
24import socket
35import sys
4- import os
5- from pytest import fixture
6- from subprocess import Popen
7- from typing import Generator , Any , Tuple
6+ import time
87from pathlib import Path
9- from uuid import uuid4
8+ from subprocess import Popen
9+ from typing import Any , Generator , Tuple
1010from urllib .error import URLError
11- import time
1211from urllib .request import urlopen
13- import shutil
12+ from uuid import uuid4
13+
14+ from pytest import fixture
1415
1516HERE = Path (__file__ ).parent
1617RESOURCES = HERE / "resources"
1718
19+
1820@fixture
1921def a_token () -> str :
2022 """Get a random UUID to use for a token."""
Original file line number Diff line number Diff line change 1- from pathlib import Path
21import sys
2+ from pathlib import Path
33
44HERE = Path (__file__ ).parent .resolve ()
55
Original file line number Diff line number Diff line change 11import asyncio
22import gzip
3- from typing import Tuple
43import json
5- import os
64from http .client import HTTPConnection
75from io import BytesIO
6+ from typing import Tuple
87from urllib .parse import quote
98
109import pytest
You can’t perform that action at this time.
0 commit comments