Skip to content

Commit 5d654e6

Browse files
committed
Add history_change_reason in tests that was failing after resolve merge with master
1 parent a5721fd commit 5d654e6

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

simple_history/registry_tests/tests.py

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,8 @@ def test_tracked_abstract_base(self):
8686
for f in TrackedWithAbstractBase.history.model._meta.fields
8787
],
8888
[
89-
'id', 'history_id', 'history_date', 'history_user_id',
89+
'id', 'history_id', 'history_date',
90+
'history_change_reason', 'history_user_id',
9091
'history_type',
9192
],
9293
)
@@ -99,7 +100,8 @@ def test_tracked_concrete_base(self):
99100
],
100101
[
101102
'id', 'trackedconcretebase_ptr_id', 'history_id',
102-
'history_date', 'history_user_id', 'history_type',
103+
'history_date', 'history_change_reason', 'history_user_id',
104+
'history_type',
103105
],
104106
)
105107

@@ -114,7 +116,8 @@ def test_tracked_abstract_and_untracked_concrete_base(self):
114116
[f.attname for f in InheritTracking1.history.model._meta.fields],
115117
[
116118
'id', 'untrackedconcretebase_ptr_id', 'history_id',
117-
'history_date', 'history_user_id', 'history_type',
119+
'history_date', 'history_change_reason',
120+
'history_user_id', 'history_type',
118121
],
119122
)
120123

@@ -123,7 +126,8 @@ def test_indirect_tracked_abstract_base(self):
123126
[f.attname for f in InheritTracking2.history.model._meta.fields],
124127
[
125128
'id', 'baseinherittracking2_ptr_id', 'history_id',
126-
'history_date', 'history_user_id', 'history_type',
129+
'history_date', 'history_change_reason',
130+
'history_user_id', 'history_type',
127131
],
128132
)
129133

@@ -132,7 +136,8 @@ def test_indirect_tracked_concrete_base(self):
132136
[f.attname for f in InheritTracking3.history.model._meta.fields],
133137
[
134138
'id', 'baseinherittracking3_ptr_id', 'history_id',
135-
'history_date', 'history_user_id', 'history_type',
139+
'history_date', 'history_change_reason',
140+
'history_user_id', 'history_type',
136141
],
137142
)
138143

0 commit comments

Comments
 (0)