PR: Fix LibraryLocation -> LibraryPath renaming due to deprecation with Qt6#393
PR: Fix LibraryLocation -> LibraryPath renaming due to deprecation with Qt6#393dalthviz merged 2 commits intospyder-ide:masterfrom StSav012:patch-1
LibraryLocation -> LibraryPath renaming due to deprecation with Qt6#393Conversation
|
More info on the change: https://doc.qt.io/qt-6/qlibraryinfo-obsolete.html |
LibraryLocation -> LibraryPath renaming due to deprecation with Qt6
dalthviz
left a comment
There was a problem hiding this comment.
Hi @StSav012 thank you for the help with this! I think we should add a test for this. It should go inside test_qtcore.py and be something similar to the tests we have for QLibraryInfo.location:
qtpy/qtpy/tests/test_qtcore.py
Lines 65 to 68 in 371ec52
Other than that, this LGTM 👍 If you have any question to implement the test let us know!
|
Hi @dalthviz, Thank you for the feedback. Forgive me for not looking through the tests, for I'm not disciplines enough (yet) to make tests for my code. As a side note, is line qtpy/qtpy/tests/test_qtcore.py Line 73 in 371ec52 assert there, like you have in similar places. On the other hand, if there is no exec_ function, the expression should raise an AttributeError, right? Then, many asserts aren't necessary at all.
|
You are probably right there @StSav012 ! In general I believe we have a lot of room for improvement regarding testing 😅 If you want to help with that or have any ideas feel free to open a new issue to discuss and maybe plan what changes we could do to improve our test suite :) |
That was a minor omission.