aboutsummaryrefslogblamecommitdiffstats
path: root/ctrack/organisations/tests/test_factories.py
blob: 227d7dbad8af3536ee36af6047bf9d51259fe376 (plain) (tree)
1
2
3
4
5




                                                  













                                   
                                                                  
                       
from ctrack.organisations.tests.factories import (
    OrganisationFactory,
    PersonFactory,
    RoleFactory,
)


def test_organisation_factory():
    o = OrganisationFactory.build()
    assert o.name


def test_role_factory():
    r = RoleFactory.build()
    assert r.name


def test_person_factory():
    r = RoleFactory.build()
    p = PersonFactory.build(role=r, predecessor__predecessor=None)
    assert p.first_name