dependency_ordered
Reorder test_databases into an order that honors the dependencies described in TEST[DEPENDENCIES].
def dependency_ordered(
test_databases: list,
dependencies: dict
) - > list
Reorder test_databases into an order that honors the dependencies described in TEST[DEPENDENCIES].
Parameters
| Name | Type | Description |
|---|---|---|
| test_databases | list | A list of tuples containing database signatures and their associated metadata (name and aliases) to be sorted. |
| dependencies | dict | A mapping of database aliases to the list of other database aliases they require to be initialized first. |
Returns
| Type | Description |
|---|---|
list | A list of database configurations sorted such that every database appears after all the databases it depends on. |