SGauthier2Pro / P13_Python-OC-Lettings-FR

0 stars 0 forks source link

pytest_six_module_error #1

Closed SGauthier2Pro closed 1 year ago

SGauthier2Pro commented 1 year ago

executing pytest, an error message regarding six module which is absent is displayed

File "D:\Formation\DA_Python\Projet_13\Python-OC-Lettings-FR\env\lib\site-packages\pytest_django\live_server_helper.py", line 1, in <module>
    import six
ModuleNotFoundError: No module named 'six'
SGauthier2Pro commented 1 year ago

installing six module with : pip install six command

executing pytest again the error message desappeared but a warning stay

`configfile: setup.cfg
plugins: django-3.9.0
collected 1 item                                                                                                                                                                                                                          

oc_lettings_site/tests.py::test_dummy PASSED                                                                                                                                                                                        [100%]

============================================================================================================ warnings summary ============================================================================================================
env\lib\site-packages\django\utils\version.py:6
  D:\Formation\DA_Python\Projet_13\Python-OC-Lettings-FR\env\lib\site-packages\django\utils\version.py:6: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 fo
r potential alternatives
    from distutils.version import LooseVersion

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
====================================================================================================== 1 passed, 1 warning in 0.04s ======================================================================================================`