Commit 75908dc96280566a57a616f26c948da9e8c5987b
1 parent
fcd7b1dc
Exists in
trac_indexing
Fixed tests in test_trac.py closes #44 .
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
colab/proxy/trac/tests/test_trac.py
... | ... | @@ -27,6 +27,7 @@ class AttachmentTest(TestCase): |
27 | 27 | attachment.title = 'title' |
28 | 28 | attachment.description = 'description' |
29 | 29 | attachment.modified = '1994-11-05T08:15:30-05:00' |
30 | + attachment.created = '1994-11-05T08:15:30-05:00' | |
30 | 31 | attachment.mimetype = 'mimetype' |
31 | 32 | attachment.size = 20 |
32 | 33 | attachment.save() |
... | ... | @@ -110,7 +111,6 @@ class TicketTest(TestCase): |
110 | 111 | ticket.collaborators = 'collaborators' |
111 | 112 | ticket.created = '1994-11-05T08:15:30-05:00' |
112 | 113 | ticket.modified = '1994-11-05T08:15:30-05:00' |
113 | - ticket.modified_by = 'author' | |
114 | 114 | ticket.save() |
115 | 115 | |
116 | 116 | return ticket |
... | ... | @@ -141,7 +141,7 @@ class TicketTest(TestCase): |
141 | 141 | def test_get_modified_by(self): |
142 | 142 | self.user = create_user() |
143 | 143 | get_modified_by = str(self.ticket.get_modified_by()) |
144 | - self.assertEqual(self.ticket.modified_by, get_modified_by) | |
144 | + self.assertEqual(str(self.ticket.modified_by), get_modified_by) | |
145 | 145 | |
146 | 146 | def test_invalid_get_modified_by(self): |
147 | 147 | get_modified_by = self.ticket.get_modified_by() | ... | ... |