Skip to content

Commit

Permalink
TST: Add missing test annotations (#2507)
Browse files Browse the repository at this point in the history
* TST: Add missing test annotations

Co-authored-by: Scott Kitterman <[email protected]>
  • Loading branch information
stefan6419846 and Scott Kitterman authored Mar 8, 2024
1 parent dee4c35 commit f432687
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/scripts/test_make_release.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from pathlib import Path
from unittest import mock

import make_release
import pytest

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

Expand All @@ -18,6 +18,8 @@


def test_get_git_commits_since_tag():
make_release = pytest.importorskip("make_release")

with open(COMMITS__VERSION_4_0_1, mode="rb") as commits, \
mock.patch("urllib.request.urlopen", side_effect=lambda n: commits), \
mock.patch("subprocess.check_output", return_value=GIT_LOG__VERSION_4_0_1):
Expand Down Expand Up @@ -62,6 +64,8 @@ def test_get_git_commits_since_tag():


def test_get_formatted_changes():
make_release = pytest.importorskip("make_release")

with open(COMMITS__VERSION_4_0_1, mode="rb") as commits, \
mock.patch("urllib.request.urlopen", side_effect=lambda n: commits), \
mock.patch("subprocess.check_output", return_value=GIT_LOG__VERSION_4_0_1):
Expand Down
1 change: 1 addition & 0 deletions tests/test_generic.py
Original file line number Diff line number Diff line change
Expand Up @@ -1247,6 +1247,7 @@ def test_encodedstream_set_data():
assert cc[NameObject("/Test")] == "/MyTest"


@pytest.mark.enable_socket()
def test_calling_indirect_objects():
"""Cope with cases where attributes/items are called from indirectObject"""
url = (
Expand Down

0 comments on commit f432687

Please sign in to comment.