示例#1
0
def test_permit_model_find_by_mine_guid(test_client, auth_headers):
    permit = Permit.find_by_mine_guid(TEST_MINE_GUID)
    assert str(permit[0].mine_guid) == TEST_MINE_GUID
示例#2
0
def test_permit_model_find_by_mine_guid(db_session):
    mine_guid = MineFactory(mine_permit=1).mine_guid

    permits = Permit.find_by_mine_guid(str(mine_guid))
    assert permits[0].mine_guid == mine_guid