aboutsummaryrefslogtreecommitdiffstats
path: root/ctrack
diff options
context:
space:
mode:
authorMatthew Lemon <matt@matthewlemon.com>2020-02-19 22:16:54 +0000
committerMatthew Lemon <matt@matthewlemon.com>2020-02-19 22:16:54 +0000
commit7523b27d1e67fa32584f1d34777faf2e53ce6edf (patch)
tree86114dc1f539a1d15910ebf287f4c23b60d0b6cf /ctrack
parent9f3176b50f0df2ad2b5069963ca5424dab56b613 (diff)
PersonFactory fixed - properly now, it gets a predecessor. Need to test with the database.
Diffstat (limited to '')
-rw-r--r--ctrack/organisations/tests/test_factories.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ctrack/organisations/tests/test_factories.py b/ctrack/organisations/tests/test_factories.py
index 649c0e4..46a7a39 100644
--- a/ctrack/organisations/tests/test_factories.py
+++ b/ctrack/organisations/tests/test_factories.py
@@ -37,5 +37,5 @@ def test_role_factory():
def test_person_factory():
r = RoleFactory.build()
- p = PersonFactory.build(role=r, predecessor=None)
+ p = PersonFactory.build(role=r, predecessor__predecessor=None)
assert p.first_name