WIP: Draft: fix: add pytest-redis to a list of dev deps #30

Closed
usov_i wants to merge 1 commits from fix-missing-dep into main
usov_i commented 2024-04-16 10:49:17 +02:00 (Migrated from gitlab.psi.ch)

Fix ModuleNotFoundError in tests by adding a missing pytest-redis dependency.
This exposes a new issue:

Traceback:
/usr/local/lib/python3.10/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
tests/test_file_writer_service.py:8: in <module>
    from bec_plugins.services.NIDAQ_writer import NIDAQWriterService
bec_plugins/services/NIDAQ_writer/__init__.py:1: in <module>
    from .NIDAQ_writer import NIDAQWriterService
bec_plugins/services/NIDAQ_writer/NIDAQ_writer.py:12: in <module>
    from bec_lib.file_utils import FileWriterMixin
E   ImportError: cannot import name 'FileWriterMixin' from 'bec_lib.file_utils' (/usr/local/lib/python3.10/site-packages/bec_lib/file_utils.py)

It seems to be related to https://gitlab.psi.ch/bec/bec/-/merge_requests/544. Should FileWriterMixin be replaced by FileWriter? But the corresponding issue states the opposite: https://gitlab.psi.ch/bec/bec/-/issues/244

Fix `ModuleNotFoundError` in tests by adding a missing `pytest-redis` dependency. This exposes a new issue: ``` Traceback: /usr/local/lib/python3.10/importlib/__init__.py:126: in import_module return _bootstrap._gcd_import(name[level:], package, level) tests/test_file_writer_service.py:8: in <module> from bec_plugins.services.NIDAQ_writer import NIDAQWriterService bec_plugins/services/NIDAQ_writer/__init__.py:1: in <module> from .NIDAQ_writer import NIDAQWriterService bec_plugins/services/NIDAQ_writer/NIDAQ_writer.py:12: in <module> from bec_lib.file_utils import FileWriterMixin E ImportError: cannot import name 'FileWriterMixin' from 'bec_lib.file_utils' (/usr/local/lib/python3.10/site-packages/bec_lib/file_utils.py) ``` It seems to be related to https://gitlab.psi.ch/bec/bec/-/merge_requests/544. Should `FileWriterMixin` be replaced by `FileWriter`? But the corresponding issue states the opposite: https://gitlab.psi.ch/bec/bec/-/issues/244
usov_i commented 2024-04-16 10:49:17 +02:00 (Migrated from gitlab.psi.ch)

requested review from @appel_c and @wakonig_k

requested review from @appel_c and @wakonig_k
wakonig_k commented 2024-04-16 10:54:43 +02:00 (Migrated from gitlab.psi.ch)

https://gitlab.psi.ch/bec/bec/-/merge_requests/572 moves the dependencies from bec_lib to bec_client / bec_ipython_client. Let's wait until this is merged

https://gitlab.psi.ch/bec/bec/-/merge_requests/572 moves the dependencies from bec_lib to bec_client / bec_ipython_client. Let's wait until this is merged
appel_c commented 2024-04-24 11:34:08 +02:00 (Migrated from gitlab.psi.ch)
can be closed -> https://gitlab.psi.ch/bec/debye-bec/-/merge_requests/8
appel_c (Migrated from gitlab.psi.ch) closed this pull request 2024-04-24 11:34:08 +02:00

Pull request closed

Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: bec/debye_bec#30