mirror of
https://github.com/eternnoir/pyTelegramBotAPI.git
synced 2023-08-10 21:12:57 +03:00
Fix test case error.
This commit is contained in:
parent
c3300af656
commit
571a0fb320
@ -110,5 +110,5 @@ def test_json_contact():
|
|||||||
def test_json_voice():
|
def test_json_voice():
|
||||||
json_string = r'{"duration": 0,"mime_type": "audio/ogg","file_id": "AwcccccccDH1JaB7w_gyFjYQxVAg","file_size": 10481}'
|
json_string = r'{"duration": 0,"mime_type": "audio/ogg","file_id": "AwcccccccDH1JaB7w_gyFjYQxVAg","file_size": 10481}'
|
||||||
voice = types.Voice.de_json(json_string)
|
voice = types.Voice.de_json(json_string)
|
||||||
assert voice.duration == 0;
|
assert voice.duration == 0
|
||||||
assert voice.file_size == 10481
|
assert voice.file_size == 10481
|
||||||
|
Loading…
x
Reference in New Issue
Block a user