(self)
| 257 | self.assertEqual(test_tasks.noop_task_async.name, "noop_task_async") |
| 258 | |
| 259 | def test_module_path(self): |
| 260 | self.assertEqual(test_tasks.noop_task.module_path, "tasks.tasks.noop_task") |
| 261 | self.assertEqual( |
| 262 | test_tasks.noop_task_async.module_path, "tasks.tasks.noop_task_async" |
| 263 | ) |
| 264 | |
| 265 | self.assertIs( |
| 266 | import_string(test_tasks.noop_task.module_path), test_tasks.noop_task |
| 267 | ) |
| 268 | self.assertIs( |
| 269 | import_string(test_tasks.noop_task_async.module_path), |
| 270 | test_tasks.noop_task_async, |
| 271 | ) |
| 272 | |
| 273 | def test_pickle_task(self): |
| 274 | pickled_task = pickle.dumps(test_tasks.noop_task) |
nothing calls this directly
no test coverage detected