Set testing.PORT on all app.create_server() in tests (#1593)

This commit is contained in:
Adam Hopkins
2019-05-30 17:10:00 +03:00
committed by Stephen Sadowski
parent a57c14c70b
commit c15158224b
2 changed files with 17 additions and 6 deletions

View File

@@ -84,7 +84,7 @@ async def test_trigger_before_events_create_server(app):
async def init_db(app, loop):
app.db = MySanicDb()
await app.create_server(debug=True, return_asyncio_server=True)
await app.create_server(debug=True, return_asyncio_server=True, port=PORT)
assert hasattr(app, "db")
assert isinstance(app.db, MySanicDb)