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 1
1
"""
2
2
Traitlets based configuration for jupyter_server_proxy
3
3
"""
4
+ import sys
4
5
from collections import namedtuple
5
6
from warnings import warn
6
7
7
- import sys
8
-
9
8
if sys .version_info < (3 , 10 ): # pragma: no cover
10
9
from importlib_metadata import entry_points
11
10
else : # pragma: no cover
Original file line number Diff line number Diff line change 1
1
"""Reusable test fixtures for ``jupyter_server_proxy``."""
2
+ import os
3
+ import shutil
2
4
import socket
3
5
import sys
4
- import os
5
- from pytest import fixture
6
- from subprocess import Popen
7
- from typing import Generator , Any , Tuple
6
+ import time
8
7
from pathlib import Path
9
- from uuid import uuid4
8
+ from subprocess import Popen
9
+ from typing import Any , Generator , Tuple
10
10
from urllib .error import URLError
11
- import time
12
11
from urllib .request import urlopen
13
- import shutil
12
+ from uuid import uuid4
13
+
14
+ from pytest import fixture
14
15
15
16
HERE = Path (__file__ ).parent
16
17
RESOURCES = HERE / "resources"
17
18
19
+
18
20
@fixture
19
21
def a_token () -> str :
20
22
"""Get a random UUID to use for a token."""
Original file line number Diff line number Diff line change 1
- from pathlib import Path
2
1
import sys
2
+ from pathlib import Path
3
3
4
4
HERE = Path (__file__ ).parent .resolve ()
5
5
Original file line number Diff line number Diff line change 1
1
import asyncio
2
2
import gzip
3
- from typing import Tuple
4
3
import json
5
- import os
6
4
from http .client import HTTPConnection
7
5
from io import BytesIO
6
+ from typing import Tuple
8
7
from urllib .parse import quote
9
8
10
9
import pytest
You can’t perform that action at this time.
0 commit comments