Skip to content
Myr

Cleanup unneccessary test case (#3375)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Tom Christie · committed by GitHub · parent 5dda2aa · Browse files · 1 file+0 added−23 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+0 added−23 removed

  • tests:+0 added−23 removed

1 file+0 added−23 removed

modified:tests/client/test_auth.py-23 removed
269 unmodified lines
270 assert response.json() == {"auth": None}271272273@pytest.mark.skipif(274 sys.version_info < (3, 11),275 reason="netrc files without a password are invalid with Python < 3.11",276)277def test_netrc_auth_nopassword() -> None: # pragma: no cover278 """279 Python has different netrc parsing behaviours with different versions.280 For Python 3.11+ a netrc file with no password is valid. In this case281 we want to check that we allow the netrc auth, and simply don't provide282 any credentials in the request.283 """284 netrc_file = str(FIXTURES_DIR / ".netrc-nopassword")285 url = "http://example.org"286 app = App()287 auth = httpx.NetRCAuth(netrc_file)288289 with httpx.Client(transport=httpx.MockTransport(app), auth=auth) as client:290 response = client.get(url)291292 assert response.status_code == 200293 assert response.json() == {"auth": None}294295296@pytest.mark.skipif(274 sys.version_info >= (3, 11),275 reason="netrc files without a password are valid from Python >= 3.11",276)277def test_netrc_auth_nopassword_parse_error() -> None: # pragma: no cover
495 unmodified lines