(mocked_init_connections, conn_handler)
| 23 | @pytest.mark.asyncio |
| 24 | @patch("tortoise.connection.ConnectionHandler._init_connections") |
| 25 | async def test_init(mocked_init_connections, conn_handler): |
| 26 | db_config = {"default": {"HOST": "some_host", "PORT": "1234"}} |
| 27 | await conn_handler._init(db_config, True) |
| 28 | mocked_init_connections.assert_awaited_once() |
| 29 | assert db_config == conn_handler._db_config |
| 30 | assert conn_handler._create_db is True |
| 31 | |
| 32 | |
| 33 | def test_db_config_present(conn_handler): |
nothing calls this directly
no test coverage detected
searching dependent graphs…