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:
Austin Pickett
2026-09-22 00:24:26 -04:00
parent 25f7d1098c
commit be65eab584

View File

@@ -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