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
Move some unit test helper modules into galaxy-app #12553
Conversation
Can you fix the conflict please?
Mmmh, what about moving |
ab7960c
to
af55f85
Compare
I've got a bad history with doing those kind of refactorings - I'm worried about the pyc files conflicting as you switch between 21.09 and 22.01. Are those kind of issues any better with Python 3? I don't think getting the right name is worth the potential deployment issues. Also we do all sort so of gross things with galaxy.app (https://github.com/galaxyproject/galaxy/blob/dev/lib/galaxy/webapps/galaxy/buildapp.py#L61) right near the top of the app. Am I being too risk adverse and Python ignorant though? |
I did a quick test with a module in BioBlend (back and forth) and it worked fine, but I wouldn't swear to it. Maybe we could try and see if at least the tests pass? |
af55f85
to
aad6301
Compare
This allows for storing more galaxy-app related functionality in a structured place for it - see conversation on galaxyproject#12553.
I've opened a PR for the tests you recommended #12583. I'm still nervous - we've got other stuff that is imported from root by galaxy-app (di.py, queue_worker.py, config_watchers.py, etc..) - what do you think about just renaming |
This allows for storing more galaxy-app related functionality in a structured place for it - see conversation on galaxyproject#12553.
This allows for storing more galaxy-app related functionality in a structured place for it - see conversation on galaxyproject#12553.
In the last two commits here, I moved galaxy_mock.py and tools_support.py respectively into a module where they will be packaged with galaxy-app. A precondition to #12549 it seems and another step along the path toward #8364 (along with #12552, #12551, #12550, etc..).
Builds on #12546.
For the other packages I created a unittest_utils in
galaxy.<package>
- but I'm guessing we shouldn't create agalaxy.app
folder I guess since there is alib/galaxy/app.py
file so I just placed these test helpers inapp_unittest_utils
instead - spiritually follows the convention if not literally.How to test the changes?
(Select all options that apply)
License