Commit 75908dc96280566a57a616f26c948da9e8c5987b
1 parent
fcd7b1dc
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,6 +27,7 @@ class AttachmentTest(TestCase): | ||
27 | attachment.title = 'title' | 27 | attachment.title = 'title' |
28 | attachment.description = 'description' | 28 | attachment.description = 'description' |
29 | attachment.modified = '1994-11-05T08:15:30-05:00' | 29 | attachment.modified = '1994-11-05T08:15:30-05:00' |
30 | + attachment.created = '1994-11-05T08:15:30-05:00' | ||
30 | attachment.mimetype = 'mimetype' | 31 | attachment.mimetype = 'mimetype' |
31 | attachment.size = 20 | 32 | attachment.size = 20 |
32 | attachment.save() | 33 | attachment.save() |
@@ -110,7 +111,6 @@ class TicketTest(TestCase): | @@ -110,7 +111,6 @@ class TicketTest(TestCase): | ||
110 | ticket.collaborators = 'collaborators' | 111 | ticket.collaborators = 'collaborators' |
111 | ticket.created = '1994-11-05T08:15:30-05:00' | 112 | ticket.created = '1994-11-05T08:15:30-05:00' |
112 | ticket.modified = '1994-11-05T08:15:30-05:00' | 113 | ticket.modified = '1994-11-05T08:15:30-05:00' |
113 | - ticket.modified_by = 'author' | ||
114 | ticket.save() | 114 | ticket.save() |
115 | 115 | ||
116 | return ticket | 116 | return ticket |
@@ -141,7 +141,7 @@ class TicketTest(TestCase): | @@ -141,7 +141,7 @@ class TicketTest(TestCase): | ||
141 | def test_get_modified_by(self): | 141 | def test_get_modified_by(self): |
142 | self.user = create_user() | 142 | self.user = create_user() |
143 | get_modified_by = str(self.ticket.get_modified_by()) | 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 | def test_invalid_get_modified_by(self): | 146 | def test_invalid_get_modified_by(self): |
147 | get_modified_by = self.ticket.get_modified_by() | 147 | get_modified_by = self.ticket.get_modified_by() |