hatnote / montage

📷 Photo evaluation tool for and by Wiki Loves competitions
https://commons.wikimedia.org/wiki/Commons:Montage
BSD 3-Clause "New" or "Revised" License
36 stars 11 forks source link

Allow to specify current user in config #173

Closed baturin closed 4 years ago

baturin commented 4 years ago

Ability to specify user in config file, to get simple way to switch user in development environment, with no need to modify "mw.py", and with no need to configure OAuth.

codecov-commenter commented 4 years ago

Codecov Report

Merging #173 into master will decrease coverage by 0.00%. The diff coverage is 38.46%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #173      +/-   ##
==========================================
- Coverage   76.52%   76.51%   -0.01%     
==========================================
  Files          19       19              
  Lines        3766     3769       +3     
  Branches      471      472       +1     
==========================================
+ Hits         2882     2884       +2     
- Misses        643      644       +1     
  Partials      241      241              
Impacted Files Coverage Δ
montage/mw.py 78.51% <38.46%> (-0.57%) :arrow_down:
montage/rdb.py 77.96% <0.00%> (+0.06%) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update a921c5d...7dce661. Read the comment docs.

mahmoud commented 4 years ago

Upon further review, I think we can give this one a shot. su_to is still respected, and this should help with local testing.