123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 |
- # for example host:port/json/create_game is a valid route if using the POST method
- valid_post_routes = {
- 'login',
- 'register',
- 'depot',
- 'order', 'orders',
- 'news',
- 'trades',
- 'trades_on',
- 'orders_on',
- 'old_orders',
- 'cancel_order',
- 'leaderboard',
- 'tradables',
- 'gift',
- 'change_password',
- 'global_variables',
- 'buy_banking_license',
- 'take_out_personal_loan',
- 'repay_loan',
- 'issue_bond',
- 'loans',
- 'credits',
- 'server_version',
- 'tender_calendar',
- }
- push_message_types = set()
- upload_filtered = {
- 'issue_bond'
- }
- assert len(set(valid_post_routes)) == len(valid_post_routes)
- assert upload_filtered.issubset(valid_post_routes)
- # in the order in that they will be displayed by the help command
- client_commands = ['help',
- 'summarize_bank_rules',
- 'summarize_loan_rules',
- 'login',
- 'register',
- 'change_pw',
- 'credits',
- 'news',
- 'tradables',
- 'take_out_personal_loan',
- 'repay_loan',
- 'loans',
- 'depot',
- 'orders',
- 'orders_on',
- 'old_orders',
- 'trades',
- 'trades_on',
- 'buy',
- 'sell',
- 'gift',
- 'cancel_order',
- 'issue_bond',
- 'buy_banking_license',
- 'tender_calendar',
- 'mro_qualified_credits',
- 'leaderboard',
- 'exit',
- ]
|