Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
aperrin66 committed Feb 14, 2025
1 parent 360f212 commit 2217807
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions geospaas_rest_api/fixtures/processing_tests_data.json
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,7 @@
"fields": {
"task_id": "df2bfb58-7d2e-4f83-9dc2-bac95a421c71",
"task_name": "geospaas_processing.tasks.download",
"periodic_task_name": null,
"task_args": "(1,)",
"task_kwargs": "{}",
"status": "STARTED",
Expand All @@ -245,6 +246,7 @@
"fields": {
"task_id": "df2bfb58-7d2e-4f83-9dc2-bac95a421c72",
"task_name": "geospaas_processing.tasks.download",
"periodic_task_name": null,
"task_args": "(1,)",
"task_kwargs": "{}",
"status": "SUCCESS",
Expand All @@ -264,6 +266,7 @@
"fields": {
"task_id": "733d3a63-7a5a-4a1e-8cf0-750ae393dd98",
"task_name": "geospaas_processing.tasks.convert_to_idf",
"periodic_task_name": null,
"task_args": "((1, 'ftp://test/dataset_1_S3A_OL_1_EFR____20181213T024322_20181213T024622_20181214T065355_0179_039_089_2340_LN1_O_NT_002.zip'),)",
"task_kwargs": "{}",
"status": "STARTED",
Expand All @@ -283,6 +286,7 @@
"fields": {
"task_id": "733d3a63-7a5a-4a1e-8cf0-750ae393dd99",
"task_name": "geospaas_processing.tasks.convert_to_idf",
"periodic_task_name": null,
"task_args": "((1, 'ftp://test/dataset_1_S3A_OL_1_EFR____20181213T024322_20181213T024622_20181214T065355_0179_039_089_2340_LN1_O_NT_002.zip'),)",
"task_kwargs": "{}",
"status": "SUCCESS",
Expand Down
5 changes: 5 additions & 0 deletions geospaas_rest_api/tests/test_processing_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ def test_list_tasks(self):
'task_kwargs': '{}',
'task_id': '733d3a63-7a5a-4a1e-8cf0-750ae393dd99',
'task_name': 'geospaas_processing.tasks.convert_to_idf',
'periodic_task_name': None,
'result': "[1, \"ftp://test/sentinel3_olci_l1_efr/S3A_OL_1_EFR____20181213T024322_20181213T024622_20181214T065355_0179_039_089_2340_LN1_O_NT_002.SEN3\"]",
'status': 'SUCCESS',
'task_args': "((1, 'ftp://test/dataset_1_S3A_OL_1_EFR____20181213T024322_20181213T024622_20181214T065355_0179_039_089_2340_LN1_O_NT_002.zip'),)",
Expand All @@ -55,6 +56,7 @@ def test_list_tasks(self):
'task_kwargs': '{}',
'task_id': '733d3a63-7a5a-4a1e-8cf0-750ae393dd98',
'task_name': 'geospaas_processing.tasks.convert_to_idf',
'periodic_task_name': None,
'result': "{\"pid\": 23, \"hostname\": \"celery@3b6b6202fcbe\"}",
'status': 'STARTED',
'task_args': "((1, 'ftp://test/dataset_1_S3A_OL_1_EFR____20181213T024322_20181213T024622_20181214T065355_0179_039_089_2340_LN1_O_NT_002.zip'),)",
Expand All @@ -70,6 +72,7 @@ def test_list_tasks(self):
'task_kwargs': '{}',
'task_id': 'df2bfb58-7d2e-4f83-9dc2-bac95a421c72',
'task_name': 'geospaas_processing.tasks.download',
'periodic_task_name': None,
'result': "[1, \"ftp://test/dataset_1_S3A_OL_1_EFR____20181213T024322_20181213T024622_20181214T065355_0179_039_089_2340_LN1_O_NT_002.zip\"]",
'status': 'SUCCESS',
'task_args': '(1,)',
Expand All @@ -85,6 +88,7 @@ def test_list_tasks(self):
'task_kwargs': '{}',
'task_id': 'df2bfb58-7d2e-4f83-9dc2-bac95a421c71',
'task_name': 'geospaas_processing.tasks.download',
'periodic_task_name': None,
'result': "{\"pid\": 22, \"hostname\": \"celery@3b6b6202fcbe\"}",
'status': 'STARTED',
'task_args': '(1,)',
Expand All @@ -103,6 +107,7 @@ def test_retrieve_task(self):
"id": 1,
"task_id": "df2bfb58-7d2e-4f83-9dc2-bac95a421c71",
"task_name": "geospaas_processing.tasks.download",
'periodic_task_name': None,
"task_args": "(1,)",
"task_kwargs": "{}",
"status": "STARTED",
Expand Down

0 comments on commit 2217807

Please sign in to comment.