(self)
| 303 | assert tb.get_result(tid) == 42 |
| 304 | |
| 305 | def test_is_pickled(self): |
| 306 | tb = DatabaseBackend(self.uri, app=self.app) |
| 307 | |
| 308 | tid2 = uuid() |
| 309 | result = {'foo': 'baz', 'bar': SomeClass(12345)} |
| 310 | tb.mark_as_done(tid2, result) |
| 311 | # is serialized properly. |
| 312 | rindb = tb.get_result(tid2) |
| 313 | assert rindb.get('foo') == 'baz' |
| 314 | assert rindb.get('bar').data == 12345 |
| 315 | |
| 316 | def test_mark_as_started(self): |
| 317 | tb = DatabaseBackend(self.uri, app=self.app) |
nothing calls this directly
no test coverage detected