示例#1
0
文件: status.py 项目: parc-jason/mds
 def get(self):
     return MineStatusXref.get_active()
def test_get_mine_status_option(test_client, db_session, auth_headers):
    get_resp = test_client.get('/mines/status', headers=auth_headers['full_auth_header'])
    get_data = json.loads(get_resp.data.decode())
    assert len(get_data['records']) == len(MineStatusXref.get_active())
    assert get_resp.status_code == 200