MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / follower_url_from_main

Function follower_url_from_main

lib/sqlalchemy/testing/provision.py:416–424  ·  view source on GitHub ↗

Create a connection URL for a dynamically-created test database. :param url: the connection URL specified when the test run was invoked :param ident: the pytest-xdist "worker identifier" to be used as the database name

(url, ident)

Source from the content-addressed store, hash-verified

414
415@register.init
416def follower_url_from_main(url, ident):
417 """Create a connection URL for a dynamically-created test database.
418
419 :param url: the connection URL specified when the test run was invoked
420 :param ident: the pytest-xdist "worker identifier" to be used as the
421 database name
422 """
423 url = sa_url.make_url(url)
424 return url.set(database=ident)
425
426
427@register.init

Callers 1

setup_configFunction · 0.85

Calls 1

setMethod · 0.45

Tested by

no test coverage detected