Skip to content

Commit f432687

Browse files
stefan6419846Scott Kitterman
and
Scott Kitterman
authored
TST: Add missing test annotations (#2507)
* TST: Add missing test annotations Co-authored-by: Scott Kitterman <scott@kitterman.com>
1 parent dee4c35 commit f432687

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

tests/scripts/test_make_release.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
from pathlib import Path
33
from unittest import mock
44

5-
import make_release
5+
import pytest
66

77
DATA_PATH = Path(__file__).parent.resolve() / "data"
88

@@ -18,6 +18,8 @@
1818

1919

2020
def test_get_git_commits_since_tag():
21+
make_release = pytest.importorskip("make_release")
22+
2123
with open(COMMITS__VERSION_4_0_1, mode="rb") as commits, \
2224
mock.patch("urllib.request.urlopen", side_effect=lambda n: commits), \
2325
mock.patch("subprocess.check_output", return_value=GIT_LOG__VERSION_4_0_1):
@@ -62,6 +64,8 @@ def test_get_git_commits_since_tag():
6264

6365

6466
def test_get_formatted_changes():
67+
make_release = pytest.importorskip("make_release")
68+
6569
with open(COMMITS__VERSION_4_0_1, mode="rb") as commits, \
6670
mock.patch("urllib.request.urlopen", side_effect=lambda n: commits), \
6771
mock.patch("subprocess.check_output", return_value=GIT_LOG__VERSION_4_0_1):

tests/test_generic.py

+1
Original file line numberDiff line numberDiff line change
@@ -1247,6 +1247,7 @@ def test_encodedstream_set_data():
12471247
assert cc[NameObject("/Test")] == "/MyTest"
12481248

12491249

1250+
@pytest.mark.enable_socket()
12501251
def test_calling_indirect_objects():
12511252
"""Cope with cases where attributes/items are called from indirectObject"""
12521253
url = (

0 commit comments

Comments
 (0)