Ejemplo n.º 1
0
def test_associated_advisers_team_members():
    """Tests that get_associated_advisers() includes team members."""
    adviser = AdviserFactory()
    project = InvestmentProjectFactory()
    InvestmentProjectTeamMemberFactory(investment_project=project,
                                       adviser=adviser)
    assert adviser in tuple(project.get_associated_advisers())
Ejemplo n.º 2
0
def test_associated_advisers_specific_roles(field):
    """Tests that get_associated_advisers() includes advisers in specific roles."""
    adviser = AdviserFactory()
    factory_kwargs = {
        field: adviser,
    }
    project = InvestmentProjectFactory(**factory_kwargs)
    assert adviser in tuple(project.get_associated_advisers())
Ejemplo n.º 3
0
def test_associated_advisers_no_none():
    """Tests that get_associated_advisers() does not include None."""
    project = InvestmentProjectFactory(client_relationship_manager_id=None)
    assert None not in tuple(project.get_associated_advisers())