gammasim / simtools

Tools and applications for the Simulation System of the CTA Observatory.
https://gammasim.github.io/simtools
BSD 3-Clause "New" or "Revised" License
10 stars 1 forks source link

Bug fix on warning issued in get_version in db_handler #1063

Closed GernotMaier closed 1 month ago

GernotMaier commented 1 month ago

Fix reasons for failing unit tests (e.g., see here) when running using pytest-random and pytest-xdist (this is what we do at night for the scheduled unit test: run them 10 times in random order).

The bug was that the warning was issued at the wrong level.

Tested this locally with

pytest -n auto --count 1000 --no-cov tests/unit_tests/db/test_db_handler.py::test_get_all_versions
ctao-dpps-sonarqube[bot] commented 1 month ago

Passed

Analysis Details

0 Issues

Coverage and Duplications

Project ID: gammasim_simtools_AY_ssha9WiFxsX-2oy_w

View in SonarQube

ctao-dpps-sonarqube[bot] commented 1 month ago

Passed

Analysis Details

0 Issues

Coverage and Duplications

Project ID: gammasim_simtools_AY_ssha9WiFxsX-2oy_w

View in SonarQube