add retry and exception support

This commit is contained in:
Jalin
2019-05-14 19:51:19 +08:00
parent 0913772ec6
commit 368bded297
10 changed files with 205 additions and 6 deletions

12
tests/test_query.py Normal file
View File

@@ -0,0 +1,12 @@
from tests.helper import BaseTest
from py12306.app.query import QueryTicket
class TestQueryTicket(BaseTest):
task = {
'name': 'admin',
}
def test_get_query_api_type(self):
res = QueryTicket().get_query_api_type()
self.assertEqual('leftTicket/query', res)