Beispiel #1
0
def test_person_model_find_by_name(test_client, auth_headers):
    party = Party.find_by_name(TEST_PARTY_PER_FIRST_NAME_1,
                               TEST_PARTY_PER_PARTY_NAME_1)
    assert party.first_name == TEST_PARTY_PER_FIRST_NAME_1
    assert party.party_name == TEST_PARTY_PER_PARTY_NAME_1
Beispiel #2
0
def test_party_model_find_by_party_name(db_session):
    party = PartyFactory(company=True)

    party_org = Party.find_by_name(party.party_name)
    assert party_org.party_name == party.party_name
Beispiel #3
0
def test_party_model_find_by_party_name(test_client, auth_headers):
    party_org = Party.find_by_name(TEST_PARTY_ORG_NAME)
    assert party_org.party_name == TEST_PARTY_ORG_NAME
Beispiel #4
0
def test_person_model_find_by_name(db_session):
    party = PartyFactory(person=True)

    found_party = Party.find_by_name(party.party_name, party.first_name)
    assert found_party.first_name == party.first_name
    assert found_party.party_name == party.party_name