예제 #1
0
def test_1_correct_row_returned_when_get_safest_pswd_called():
    res = PersonService.get_safest_pswd()
    assert res.login_password == 'kordell1'
    assert res.sum_val == 7
예제 #2
0
def safest_password():
    try:
        res = PersonService.get_safest_pswd()
        print(res.login_password, res.sum_val)
    except OperationalError:
        print('Database is empty please download some persons first')