From 769b65efb1238a6151539c80fc8365ae784d1b23 Mon Sep 17 00:00:00 2001 From: Colin Watson Date: Wed, 6 Nov 2024 02:30:32 +0000 Subject: [PATCH] Exclude sign_up from test_all_methods_present The sign_up method was deprecated in 07a7a8b4045dc60f733f8ebe5ced0bdf6ce721ac and removed from the documentation, but since the method technically still exists (even though it immediately raises ValueError), that broke a test. --- tests/readthedocs/quick_references/test_client_reference.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/readthedocs/quick_references/test_client_reference.py b/tests/readthedocs/quick_references/test_client_reference.py index ad720d54..5cd5ac6b 100644 --- a/tests/readthedocs/quick_references/test_client_reference.py +++ b/tests/readthedocs/quick_references/test_client_reference.py @@ -10,5 +10,5 @@ def test_all_methods_present(docs_dir): assert len(present_methods) > 0 for name in dir(TelegramClient): attr = getattr(TelegramClient, name) - if callable(attr) and not name.startswith('_'): + if callable(attr) and not name.startswith('_') and name != 'sign_up': assert name in present_methods