kopia lustrzana https://github.com/OpenDroneMap/WebODM
Fixed unit test
rodzic
b86847bb54
commit
4fce6e19c2
|
@ -11,6 +11,7 @@ from app import pending_actions
|
|||
from app.models import Project, Task
|
||||
from app.plugins.signals import processing_node_removed
|
||||
from app.tests.utils import catch_signal
|
||||
from nodeodm import status_codes
|
||||
from nodeodm.models import ProcessingNode, OFFLINE_MINUTES
|
||||
from .classes import BootTestCase
|
||||
|
||||
|
@ -185,8 +186,9 @@ class TestApi(BootTestCase):
|
|||
self.assertTrue(res.data["success"])
|
||||
task.refresh_from_db()
|
||||
|
||||
# Task should have failed to be canceled
|
||||
self.assertTrue("has no processing node or UUID" in task.last_error)
|
||||
# Task should have been canceled
|
||||
self.assertTrue(task.last_error is None)
|
||||
self.assertEqual(task.status, status_codes.CANCELED)
|
||||
|
||||
res = client.post('/api/projects/{}/tasks/{}/restart/'.format(project.id, task.id))
|
||||
self.assertTrue(res.data["success"])
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "WebODM",
|
||||
"version": "1.0.2",
|
||||
"version": "1.1.0",
|
||||
"description": "Open Source Drone Image Processing",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
|
|
Ładowanie…
Reference in New Issue