Quickly sandbox your AI agent.
Python
Pass Host directly instead of a wrapping lambda in a parametrized test
Tyler Payne8a33437185b0
diff --git a/tests/unit/test_core_config.py b/tests/unit/test_core_config.pyindex d74714f..daefc02 100644--- a/tests/unit/test_core_config.py+++ b/tests/unit/test_core_config.py@@ -176,7 +176,7 @@ class TestForwardTypes:@pytest.mark.parametrize(("make", "exc", "match"),[- (lambda: Host(), TypeError, "missing a port"), # ty: ignore[no-matching-overload]+ (Host, TypeError, "missing a port"),(lambda: Host("0.0.0.0"), TypeError, "missing a port"),(lambda: Host("a:b"), ValueError, "expected 'address:port'"),(lambda: Host(":80"), ValueError, "expected 'address:port'"),