File tree 2 files changed +6
-1
lines changed
2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change 2
2
from pathlib import Path
3
3
from unittest import mock
4
4
5
- import make_release
5
+ import pytest
6
6
7
7
DATA_PATH = Path (__file__ ).parent .resolve () / "data"
8
8
18
18
19
19
20
20
def test_get_git_commits_since_tag ():
21
+ make_release = pytest .importorskip ("make_release" )
22
+
21
23
with open (COMMITS__VERSION_4_0_1 , mode = "rb" ) as commits , \
22
24
mock .patch ("urllib.request.urlopen" , side_effect = lambda n : commits ), \
23
25
mock .patch ("subprocess.check_output" , return_value = GIT_LOG__VERSION_4_0_1 ):
@@ -62,6 +64,8 @@ def test_get_git_commits_since_tag():
62
64
63
65
64
66
def test_get_formatted_changes ():
67
+ make_release = pytest .importorskip ("make_release" )
68
+
65
69
with open (COMMITS__VERSION_4_0_1 , mode = "rb" ) as commits , \
66
70
mock .patch ("urllib.request.urlopen" , side_effect = lambda n : commits ), \
67
71
mock .patch ("subprocess.check_output" , return_value = GIT_LOG__VERSION_4_0_1 ):
Original file line number Diff line number Diff line change @@ -1247,6 +1247,7 @@ def test_encodedstream_set_data():
1247
1247
assert cc [NameObject ("/Test" )] == "/MyTest"
1248
1248
1249
1249
1250
+ @pytest .mark .enable_socket ()
1250
1251
def test_calling_indirect_objects ():
1251
1252
"""Cope with cases where attributes/items are called from indirectObject"""
1252
1253
url = (
You can’t perform that action at this time.
0 commit comments