Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TST: Add missing test annotations #2507

Merged
merged 3 commits into from
Mar 8, 2024
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion tests/scripts/test_make_release.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,12 @@
from pathlib import Path
from unittest import mock

import make_release
import pytest

try:
import make_release
except ImportError:
pass

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

Expand All @@ -17,6 +22,7 @@
COMMITS__VERSION_4_0_1 = DATA_PATH.joinpath("commits__version_4_0_1.json")


pytest.importorskip("make_release")
def test_get_git_commits_since_tag():
with open(COMMITS__VERSION_4_0_1, mode="rb") as commits, \
mock.patch("urllib.request.urlopen", side_effect=lambda n: commits), \
stefan6419846 marked this conversation as resolved.
Show resolved Hide resolved
Expand Down Expand Up @@ -61,6 +67,7 @@ def test_get_git_commits_since_tag():
]


pytest.importorskip("make_release")
stefan6419846 marked this conversation as resolved.
Show resolved Hide resolved
def test_get_formatted_changes():
with open(COMMITS__VERSION_4_0_1, mode="rb") as commits, \
mock.patch("urllib.request.urlopen", side_effect=lambda n: commits), \
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()
stefan6419846 marked this conversation as resolved.
Show resolved Hide resolved
def test_calling_indirect_objects():
"""Cope with cases where attributes/items are called from indirectObject"""
url = (
Expand Down
Loading