add retry and exception support
This commit is contained in:
12
tests/test_query.py
Normal file
12
tests/test_query.py
Normal 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)
|
||||
Reference in New Issue
Block a user