mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
12 lines
422 B
Python
12 lines
422 B
Python
|
|
from aiogram.api.session.base import PRODUCTION
|
||
|
|
|
||
|
|
|
||
|
|
class TestAPIServer:
|
||
|
|
def test_method_url(self):
|
||
|
|
method_url = PRODUCTION.api_url(token="TOKEN", method="apiMethod")
|
||
|
|
assert method_url == "https://api.telegram.org/botTOKEN/apiMethod"
|
||
|
|
|
||
|
|
def test_file_url(self):
|
||
|
|
file_url = PRODUCTION.file_url(token="TOKEN", path="path")
|
||
|
|
assert file_url == "https://api.telegram.org/file/botTOKEN/path"
|