MCPcopy Create free account
hub / github.com/zzzeek/sqlalchemy / test_cant_parse_str

Method test_cant_parse_str

test/engine/test_parseconnect.py:806–811  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

804 )
805
806 def test_cant_parse_str(self):
807 with expect_raises_message(
808 exc.ArgumentError,
809 r"^Could not parse SQLAlchemy URL from given URL string$",
810 ):
811 create_engine("notarealurl")
812
813 def test_urlattr(self):
814 """test the url attribute on ``Engine``."""

Callers

nothing calls this directly

Calls 2

expect_raises_messageFunction · 0.90
create_engineFunction · 0.90

Tested by

no test coverage detected