Add some basic tests for base stage implementation

This commit is contained in:
Julian Stirling 2026-02-16 21:37:05 +00:00
parent 10f73cfb76
commit 8a77c09305
3 changed files with 48 additions and 7 deletions

View file

@ -1 +1,10 @@
"""Shared utilities for all test suites."""
import functools
def get_method_name(method):
"""Reliably get a methods name even if wrapped."""
while isinstance(method, functools.partial):
method = method.func
return getattr(method, "__name__", type(method).__name__)