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)
| 414 | |
| 415 | @register.init |
| 416 | def 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 |