Exemplo n.º 1
0
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.active())
    assert get_resp.status_code == 200
Exemplo n.º 2
0
 def get(self):
     return MineStatusXref.active()