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
Changes from all 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
6 changes: 5 additions & 1 deletion tests/scripts/test_make_release.py
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@
from pathlib import Path
from unittest import mock

import make_release
import pytest

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

@@ -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):
@@ -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):
1 change: 1 addition & 0 deletions tests/test_generic.py
Original file line number Diff line number Diff line change
@@ -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 = (