Skip to content

fix: Improve Testing Decorators #209

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

Merged
merged 1 commit into from
Apr 23, 2025
Merged

fix: Improve Testing Decorators #209

merged 1 commit into from
Apr 23, 2025

Conversation

HCookie
Copy link
Member

@HCookie HCookie commented Apr 23, 2025

Add functools.wraps to decorator to allow usage of pytest.marks in downstream tests.

Example

@pytest.mark.parametrize(
    "arg1, arg2",
    [
        ("wow", 'test'),
    ],
)
@fake_checkpoints
def test(arg1, arg2):
	assert arg1 != arg2

@HCookie HCookie requested review from gmertes and b8raoult April 23, 2025 13:38
@HCookie HCookie self-assigned this Apr 23, 2025
@HCookie HCookie changed the title Fix: Improve Testing Decorators fix: Improve Testing Decorators Apr 23, 2025
@HCookie HCookie merged commit 03a7f65 into main Apr 23, 2025
76 of 77 checks passed
@HCookie HCookie deleted the fix/testing_decorators branch April 23, 2025 14:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants