anitab-org / anitab-org/mentorship-backend

Bug Report: Library dependencies in unit tests out of date

オープン
#1,153 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Python
スター
200
フォーク
449
PR マージ指標
30日以内にマージされた PR はありません

説明

### Describe the bug

When running the provided unit tests for this repo receiving error:
"ImportError: cannot import name 'Markup' from 'jinja2'"
After further investigaton, discovered that Jinja2>=2.10.1 deprecated Markup command

### To Reproduce
Steps to reproduce the behavior:
1. Submit a pull request with a commit
2. Code runs on unit tests
3. See error

### Screenshots

Screen Shot 2022-04-22 at 11 12 21 PM

### Desktop (please complete the following information):
- OS: IOS
- Browser: Chrome
- Version: 22

### Additional context

potentially use this instead to fix:
>>> from jinja2.utils import markupsafe
>>> markupsafe.Markup()
Markup('')

OR have to change dependency versions, when done locally all unit tests ran as usual

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。