rowmateproject / rowmate-v2-backend

Backend for rowmate v2
GNU General Public License v3.0
1 stars 0 forks source link

ImportError: cannot import name 'MessageType' from 'fastapi_mail.schemas' while running pytest in Github Workflow #1

Closed maurosbicego closed 1 year ago

maurosbicego commented 1 year ago

The run of the Github-Workflow with pytest fails due to an Import Error: ImportError: cannot import name 'MessageType' from 'fastapi_mail.schemas' On the dev machine (#worksonmymachine), however, the import works. The library, fastapi-mail, is installed as version 1.2.2 for the workflow runs and on my machine.

maurosbicego commented 1 year ago

Added workaround in commit e7c7b4fff641a29f15a14a76c3b88d76ef8428f2 Still looking for a better / real solution

maurosbicego commented 1 year ago

Removed the class MessageType in d1dec0b65e80c19b51b89e0648f3a64e207cade6 It seems that it has been implemented to be able to perform some kind of validation. However, used like shown on https://github.com/sabuhish/fastapi-mail#readme doesn't seem to work for the Github Action. Might analyse further later on. (@sabuhish)