DIRACGrid / diracx

The neXt DIRAC generation
GNU General Public License v3.0
8 stars 20 forks source link

Warnings in tests #179

Closed chrisburr closed 9 months ago

chrisburr commented 10 months ago
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 10 months ago

Related to https://github.com/DIRACGrid/diracx/issues/176

chaen commented 9 months ago

fixed in https://github.com/DIRACGrid/diracx/pull/189