Running django test_suite against oracle

Hi Team,

I want to run django test suite against cx_oracle.

My virtual environment includes .

Pip freeze

asgiref==3.7.2
cx-Oracle==8.3.0
Django==5.1.dev20240112095109
sqlparse==0.4.4

./runtests.py --settings=test_oracle --v=2

File “/Users/apple/.virtualenvs/temp_jan_cx/lib/python3.11/site-packages/Django-5.1.dev20240112095109-py3.11.egg/django/db/backends/oracle/oracledb_any.py”, line 16, in
warnings.warn(
django.utils.deprecation.RemovedInDjango60Warning: cx_Oracle is deprecated. Use oracledb instead.

Why I am not able to run test suite against cx_oracle. I am able to run it against oracledb.

Because cx_Oracle is deprecated and runtests.py treats deprecation warnings as errors.

Thanks @felixxm for the answer.