Changeset View
Changeset View
Standalone View
Standalone View
swh/storage/tests/server_testing.py
Show First 20 Lines • Show All 134 Lines • ▼ Show 20 Lines | class ServerTestFixtureAsync(ServerTestFixtureBaseClass): | ||||
and a different folder. | and a different folder. | ||||
In order to correctly work, the subclass must call the parents | In order to correctly work, the subclass must call the parents | ||||
class's setUp() and tearDown() methods. | class's setUp() and tearDown() methods. | ||||
""" | """ | ||||
def define_worker_function(self): | def define_worker_function(self): | ||||
def worker(app, port): | def worker(app, port): | ||||
return aiohttp.web.run_app(app, port=int(port)) | return aiohttp.web.run_app(app, port=int(port), | ||||
print=lambda *_: None) | |||||
return worker | return worker |