Skip to content

Commit b237488

Browse files
committed
fixing tests
1 parent ccd7c33 commit b237488

File tree

4 files changed

+5
-6
lines changed

4 files changed

+5
-6
lines changed

celery-cmd

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,11 @@ CELERY__MAX_TASKS_PER_CHILD=${CELERY__MAX_TASKS_PER_CHILD:-"10"}
1111
CELERY__OPTS=${CELERY__OPTS:-"--without-gossip --without-mingle -Ofair -B -E"}
1212
CELERY__BEAT_SCHEDULE=${CELERY__BEAT_SCHEDULE:-"celery.beat:PersistentScheduler"}
1313
CELERY__LOG_LEVEL=${CELERY__LOG_LEVEL:-"INFO"}
14-
# CELERY__LOG_FILE=${CELERY__LOG_FILE:-"/var/log/celery.log"}
1514
CELERY__WORKER_NAME=${CELERY__WORKER_NAME:-"worker1@%h"}
1615
CELERY__WORKER_CONCURRENCY=${CELERY__WORKER_CONCURRENCY:-"4"}
1716

1817
$CELERY_BIN -A $CELERY_APP worker --autoscale=$CELERY__AUTOSCALE_VALUES \
1918
--max-memory-per-child=$CELERY__MAX_MEMORY_PER_CHILD $CELERY__OPTS \
2019
--statedb=$CELERY__STATE_DB --scheduler=$CELERY__BEAT_SCHEDULE \
21-
--loglevel=$CELERY__LOG_LEVEL -n $CELERY__WORKER_NAME -f $CELERY__LOG_FILE \
20+
--loglevel=$CELERY__LOG_LEVEL -n $CELERY__WORKER_NAME \
2221
--concurrency=$CELERY__WORKER_CONCURRENCY --max-tasks-per-child=$CELERY__MAX_TASKS_PER_CHILD

geonode/upload/handlers/common/tests_vector.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -327,8 +327,8 @@ def test_select_valid_layers(self):
327327
The other one are discarded
328328
"""
329329
all_layers = GPKGFileHandler().get_ogr2ogr_driver().Open(self.no_crs_gpkg)
330-
331-
with self.assertLogs(level="ERROR") as _log:
330+
331+
with self.assertLogs("importer", level="ERROR") as _log:
332332
valid_layer = GPKGFileHandler()._select_valid_layers(all_layers)
333333

334334
self.assertIn(

geonode/upload/tests/end2end/test_end2end.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ def test_import_geopackage_with_no_crs_table_should_raise_error_if_all_layer_are
230230
self._cleanup_layers(name="mattia_test")
231231
payload = {"base_file": open(self.no_crs_gpkg, "rb"), "store_spatial_file": True, "action": "upload"}
232232

233-
with self.assertLogs(level="ERROR") as _log:
233+
with self.assertLogs("importer", level="ERROR") as _log:
234234
self.client.force_login(self.admin)
235235

236236
response = self.client.post(self.url, data=payload)

geonode/upload/tests/unit/test_orchestrator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ def test_evaluate_execution_progress_should_continue_if_some_task_is_not_finishe
295295

296296
started_entry = TaskResult.objects.create(task_id="task_id_started", status="STARTED", task_args=exec_id)
297297
success_entry = TaskResult.objects.create(task_id="task_id_success", status="SUCCESS", task_args=exec_id)
298-
with self.assertLogs(level="INFO") as _log:
298+
with self.assertLogs("importer", level="INFO") as _log:
299299
result = self.orchestrator.evaluate_execution_progress(exec_id)
300300

301301
self.assertIsNone(result)

0 commit comments

Comments
 (0)