Add status/finished to async poller
This commit is contained in:
Родитель
02c333eb13
Коммит
6b55d4f633
|
@ -38,6 +38,12 @@ class AsyncPollingMethod(object):
|
|||
async def run(self):
|
||||
raise NotImplementedError("This method needs to be implemented")
|
||||
|
||||
def status(self):
|
||||
raise NotImplementedError("This method needs to be implemented")
|
||||
|
||||
def finished(self):
|
||||
raise NotImplementedError("This method needs to be implemented")
|
||||
|
||||
def resource(self):
|
||||
raise NotImplementedError("This method needs to be implemented")
|
||||
|
||||
|
|
|
@ -46,6 +46,12 @@ async def test_abc_polling():
|
|||
with pytest.raises(NotImplementedError):
|
||||
await abc_polling.run()
|
||||
|
||||
with pytest.raises(NotImplementedError):
|
||||
abc_polling.status()
|
||||
|
||||
with pytest.raises(NotImplementedError):
|
||||
abc_polling.finished()
|
||||
|
||||
with pytest.raises(NotImplementedError):
|
||||
abc_polling.resource()
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче