DIRACGrid/diracx

Warnings in tests

chrisburr opened this issue · 2 comments

diracx-routers/tests/jobs/test_sandboxes.py: 2 warnings
  /home/runner/micromamba/envs/diracx-dev/lib/python3.11/typing.py:884: DeprecationWarning: `example` has been deprecated, please use `examples` instead
    eval(self.__forward_code__, globalns, localns),

diracx-routers/tests/test_job_manager.py::test_insert_and_reschedule
  /home/runner/micromamba/envs/diracx-dev/lib/python3.11/site-packages/fastapi/routing.py:191: RuntimeWarning: coroutine 'JobDB.rescheduleJob' was never awaited
    return await dependant.call(**values)
  Enable tracemalloc to get traceback where the object was allocated.
  See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info.

diracx-routers/tests/test_job_manager.py: 13 warnings
  sys:1: SAWarning: SELECT statement has a cartesian product between FROM element(s) "tq_Jobs" and FROM element "tq_TaskQueues".  Apply join condition(s) between each element to resolve.
chaen commented

Related to #176

chaen commented

fixed in #189