test(telegram): update polling builders for admission wiring
The polling lifecycle doubles predate ApplicationBuilder.application_class. Add the fluent method so their existing progress and reconnect assertions exercise connect again; production behavior is unchanged.
This commit is contained in:
@@ -65,6 +65,9 @@ class _LifecycleBuilder:
|
||||
def token(self, _token):
|
||||
return self
|
||||
|
||||
def application_class(self, _application_class, _kwargs=None):
|
||||
return self
|
||||
|
||||
def request(self, _request):
|
||||
return self
|
||||
|
||||
@@ -413,6 +416,9 @@ async def test_general_request_success_cannot_record_polling_progress(monkeypatc
|
||||
def token(self, _token):
|
||||
return self
|
||||
|
||||
def application_class(self, _application_class, _kwargs=None):
|
||||
return self
|
||||
|
||||
def request(self, request):
|
||||
self.general_request = request
|
||||
return self
|
||||
|
||||
Reference in New Issue
Block a user