FirebirdSQL / python3-driver

Firebird driver for Python that uses new Firebird API
https://www.firebirdsql.org/en/devel-python-driver/
MIT License
26 stars 10 forks source link

Tests failing? (ModuleNotFoundError: No module named 'firebird') #18

Closed fdcastel closed 1 year ago

fdcastel commented 1 year ago

Steps:

(venv) PS C:\Temp\python3-driver> pytest
================================================= test session starts =================================================
platform win32 -- Python 3.10.8, pytest-7.2.0, pluggy-1.0.0
rootdir: C:\Temp\python3-driver
plugins: anyio-3.6.2
collected 0 items / 1 error

======================================================= ERRORS ========================================================
________________________________________ ERROR collecting test/test_driver.py _________________________________________
ImportError while importing test module 'C:\Temp\python3-driver\test\test_driver.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
C:\Python310\lib\importlib\__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
test\test_driver.py:30: in <module>
    from firebird.base.logging import logging_manager, ANY, install_null_logger, \
E   ModuleNotFoundError: No module named 'firebird'
=============================================== short test summary info ===============================================
ERROR test/test_driver.py
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
================================================== 1 error in 0.20s ===================================================

(venv) PS C:\Temp\python3-driver> python  --version
Python 3.10.8

I am missing something?

pcisar commented 1 year ago

Firebird driver does not use pytest for testing. All tests are based on standard unittest module.