fix: drop the obsolete OAuth-unavailable startup warning test
This commit is contained in:
1 parent
7286440d64
commit
e02cede9f2
1 file changed
+2
-2
@@ -144,12 +144,12 @@ def test_no_host_warning_on_loopback(
|
|||||||
assert capsys.readouterr().err == ""
|
assert capsys.readouterr().err == ""
|
||||||
|
|
||||||
|
|
||||||
def test_oauth_enabled_with_a_bearer_warns_that_oauth_is_unavailable(
|
def test_oauth_enabled_with_a_bearer_starts_without_warnings(
|
||||||
uvicorn_spy: UvicornSpy, capsys: pytest.CaptureFixture[str]
|
uvicorn_spy: UvicornSpy, capsys: pytest.CaptureFixture[str]
|
||||||
) -> None:
|
) -> None:
|
||||||
assert run_http(oauth_settings(mcp_bearer_token=BEARER_TOKEN)) == 0
|
assert run_http(oauth_settings(mcp_bearer_token=BEARER_TOKEN)) == 0
|
||||||
|
|
||||||
assert "per-user OAuth is not available" in capsys.readouterr().err
|
assert capsys.readouterr().err == ""
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.parametrize("value", ["*,10.0.0.1", "not-an-ip", "10.0.0.1/99"])
|
@pytest.mark.parametrize("value", ["*,10.0.0.1", "not-an-ip", "10.0.0.1/99"])
|
||||||
|
|||||||
Reference in new issue
Block a user