Skip to content

Commit 367e76e

Browse files
committed
Fix invoice test
1 parent 57f12b7 commit 367e76e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/test_invoice.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,8 @@ def test_send_all_args(self, bot, chat_id, provider_token):
112112

113113
def test_send_object_as_provider_data(self, monkeypatch, bot, chat_id, provider_token):
114114
def test(_, url, data, **kwargs):
115-
return data['provider_data'] == '{"test_data":123456789}'
115+
return (data['provider_data'] == '{"test_data": 123456789}' or # Depends if using
116+
data['provider_data'] == '{"test_data":123456789}') # ujson or not
116117

117118
monkeypatch.setattr('telegram.utils.request.Request.post', test)
118119

0 commit comments

Comments
 (0)