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
Remove global variables #140
Remove global variables #140
Conversation
Codecov Report
@@ Coverage Diff @@
## master #140 +/- ##
==========================================
+ Coverage 95.15% 95.22% +0.07%
==========================================
Files 4 5 +1
Lines 454 461 +7
Branches 96 94 -2
==========================================
+ Hits 432 439 +7
Misses 7 7
Partials 15 15
Continue to review full report at Codecov.
|
Thanks for your contribution. I think this PR fixes the |
@chenjr0719 Thanks. I think merging this now would be good. I've had a look at the other global variables and they're not as easy. I was thinking maybe doing something along the lines of this: https://flask.palletsprojects.com/en/1.1.x/patterns/appfactories/#factories-extensions The issue would be backwards compatibility though. What's your opinion on it? |
@AtomsForPeace Sorry for the delay. I agree with using the factory pattern to fix all global variables. And about backward compatibility, I would say maybe we can have a PoC first and this might help us to decide what is the better way to keep the compatibility. |
An attempt to remove the global variables #117.
Any feedback or ideas?
I've been able to remove one pytest.mark.skip with these changes.