-
Notifications
You must be signed in to change notification settings - Fork 265
Introducing Pytest #162
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Introducing Pytest #162
Conversation
A bit hard to follow this PR. Changes seem to be mostly redundant with #163 . I assume that the documentation remove is orthogonal to the goals of this PR (#162), thus the changes should be removed. I suggest creating a PR that does the script movement separately, and create a separate PR based off of those changes (to which you can rebase again when they're merged). This PR probably also (partially) addresses issue #133 . |
Adding to what Jarrett said: I would appreciate a more comprehensive pull request description, including goals, scope, design, side-effects. E.g.:
|
@JarrettSJohnson, I cleaned up the PRs, they're not redundant anymore. Thanks @speleo3, I'll be more educated next time. |
The side-effect that Thomas mentioned is perhaps the one that I'm most concerned about. Do you have a plan for updating the links on PyMOLWiki? I assume that doing all of them at once is probably not feasible? Would it be better to just select/migrate a few representative scripts at a time? |
The reason I moved the scripts to a "package" named "scripts" was because Pytest couldn't collect all tests. In fact, only a single script crashed the test collection, and it was because of importing "findseq.py". Pymol-script-repo/aKMT_Lys_pred.py Lines 14 to 15 in 0251a56
Maybe with Very much sane to convert in batches sensible scripts could give room to edit any pending necessary PyMOL Wiki changes. But to edit all links in a single batch is also feasible because of https://wiki.pymol.org/index.php/Category:Pymol-script-repo, I guess. |
Ah right. I forgot/missed the part that PyMOLWiki creates these link automatically. |
I'm not strictly against moving scripts to a "scripts" folder, certainly would improve tidiness of this repo. But to prove that it's possible without moving files, I created #164 There is no problem with importing "findseq" from |
Oh, I see, that`s right! I'm thinking about move scripts manually one by one. What do you think? In the process, maybe I'll convert documentation examples in testable code? And I`m unsure how to handle psico extensions like AAIndex. |
Just did the changes on master. |
This is my attempt to develop tests direct on the script source.