mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-08 12:59:46 +00:00
Add some missing words in the docs
This commit is contained in:
14
tests/readthedocs/quick_references/test_client_reference.py
Normal file
14
tests/readthedocs/quick_references/test_client_reference.py
Normal file
@@ -0,0 +1,14 @@
|
||||
import re
|
||||
|
||||
from telethon import TelegramClient
|
||||
|
||||
|
||||
def test_all_methods_present(docs_dir):
|
||||
with (docs_dir / 'quick-references/client-reference.rst').open(encoding='utf-8') as fd:
|
||||
present_methods = set(map(str.lstrip, re.findall(r'^ {4}\w+$', fd.read(), re.MULTILINE)))
|
||||
|
||||
assert len(present_methods) > 0
|
||||
for name in dir(TelegramClient):
|
||||
attr = getattr(TelegramClient, name)
|
||||
if callable(attr) and not name.startswith('_'):
|
||||
assert name in present_methods
|
Reference in New Issue
Block a user