mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-23 18:03:46 +03:00
Exclude sign_up from test_all_methods_present
The sign_up method was deprecated in
07a7a8b404
and removed from the
documentation, but since the method technically still exists (even
though it immediately raises ValueError), that broke a test.
This commit is contained in:
parent
f03e4b1137
commit
769b65efb1
|
@ -10,5 +10,5 @@ def test_all_methods_present(docs_dir):
|
||||||
assert len(present_methods) > 0
|
assert len(present_methods) > 0
|
||||||
for name in dir(TelegramClient):
|
for name in dir(TelegramClient):
|
||||||
attr = getattr(TelegramClient, name)
|
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
|
assert name in present_methods
|
||||||
|
|
Loading…
Reference in New Issue
Block a user