MCPcopy
hub / github.com/psycopg/psycopg / test_conninfo_parse_bad

Function test_conninfo_parse_bad

tests/pq/test_conninfo.py:45–48  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

43
44
45def test_conninfo_parse_bad():
46 with pytest.raises(psycopg.OperationalError) as e:
47 pq.Conninfo.parse(b"bad_conninfo=")
48 assert "bad_conninfo" in str(e.value)

Callers

nothing calls this directly

Calls 1

parseMethod · 0.45

Tested by

no test coverage detected