Skip to content

Commit 769b65e

Browse files
cjwatsonLonami
authored andcommitted
Exclude sign_up from test_all_methods_present
The sign_up method was deprecated in 07a7a8b and removed from the documentation, but since the method technically still exists (even though it immediately raises ValueError), that broke a test.
1 parent f03e4b1 commit 769b65e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/readthedocs/quick_references/test_client_reference.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@ def test_all_methods_present(docs_dir):
1010
assert len(present_methods) > 0
1111
for name in dir(TelegramClient):
1212
attr = getattr(TelegramClient, name)
13-
if callable(attr) and not name.startswith('_'):
13+
if callable(attr) and not name.startswith('_') and name != 'sign_up':
1414
assert name in present_methods

0 commit comments

Comments
 (0)