File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change 22from pathlib import Path
33from unittest import mock
44
5- import make_release
5+ import pytest
66
77DATA_PATH = Path (__file__ ).parent .resolve () / "data"
88
1818
1919
2020def 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
6466def 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 ):
Original file line number Diff line number Diff line change @@ -1247,6 +1247,7 @@ def test_encodedstream_set_data():
12471247 assert cc [NameObject ("/Test" )] == "/MyTest"
12481248
12491249
1250+ @pytest .mark .enable_socket ()
12501251def test_calling_indirect_objects ():
12511252 """Cope with cases where attributes/items are called from indirectObject"""
12521253 url = (
You can’t perform that action at this time.
0 commit comments