Skip to content

Commit ee1f7de

Browse files
jakkdlStranger6667
authored andcommittedFeb 10, 2025·
fix: fix conditional pycurl import, actually isort files
1 parent 3bd1de4 commit ee1f7de

File tree

7 files changed

+7
-5
lines changed

7 files changed

+7
-5
lines changed
 

‎src/pytest_recording/hooks.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
from _pytest.config import Config
21
from typing import TYPE_CHECKING
32

3+
from _pytest.config import Config
4+
45
if TYPE_CHECKING:
56
from vcr import VCR
67

‎src/pytest_recording/plugin.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import os
2-
from typing import Any, Dict, Iterator, List, Optional, TYPE_CHECKING
2+
from typing import TYPE_CHECKING, Any, Dict, Iterator, List, Optional
33

44
import pytest
55
from _pytest.config import Config, PytestPluginManager

‎src/pytest_recording/utils.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
from copy import deepcopy
22
from itertools import chain
33
from typing import Any, Dict, Iterable, Iterator, List
4+
45
from _pytest.mark.structures import Mark
56

67
ConfigType = Dict[str, Any]

‎tests/test_blocking_network.py

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
from io import BytesIO
44
from socket import AF_INET, AF_NETLINK, AF_UNIX, SOCK_RAW, SOCK_STREAM, socket
55

6-
import pycurl
76
import pytest
87
import requests
98
import vcr.errors

‎tests/test_plugin.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# -*- coding: utf-8 -*-
22
import pytest
3+
34
from pytest_recording.plugin import RECORD_MODES
45

56

‎tests/test_recording.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
import json
22
import string
3+
from typing import Any
34

45
import pytest
56
import yaml
67

7-
from typing import Any
8-
98

109
def test_cassette_recording(testdir):
1110
testdir.makepyfile(

‎tests/test_utils.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import pytest
2+
23
from pytest_recording.utils import unique
34

45

0 commit comments

Comments
 (0)
Please sign in to comment.