Skip to content
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

refactor!(settings): Simplify settings structure for pytest #140

Closed
wants to merge 2 commits into from

Conversation

tony
Copy link
Member

@tony tony commented Oct 15, 2022

Fixes #139

@codecov
Copy link

codecov bot commented Oct 15, 2022

Codecov Report

Merging #140 (2639128) into master (77b980c) will increase coverage by 2.34%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master     #140      +/-   ##
==========================================
+ Coverage   79.85%   82.19%   +2.34%     
==========================================
  Files           7        7              
  Lines         134      146      +12     
  Branches       13       13              
==========================================
+ Hits          107      120      +13     
  Misses         20       20              
+ Partials        7        6       -1     
Impacted Files Coverage Δ
src/robots/settings.py 100.00% <100.00%> (+12.50%) ⬆️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@tony tony force-pushed the simplify-settings branch 2 times, most recently from c312edd to 973d1cb Compare October 15, 2022 14:41
@tony tony force-pushed the simplify-settings branch from 973d1cb to c75515f Compare October 15, 2022 14:45


sys.modules[__name__] = Settings()
Copy link
Member Author

@tony tony Oct 15, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sys.modules[__name__] = Settings()

This is what throws off pytest collection in #137 (as of pytest 7.1.3)

@tony tony force-pushed the simplify-settings branch from 34b12b7 to 2639128 Compare October 15, 2022 14:50
@tony tony changed the title refactor!(settings): Simplify settings structure refactor!(settings): Simplify settings structure for pytest Oct 15, 2022
@tony
Copy link
Member Author

tony commented Oct 16, 2022

This was part of me moving py.test patterns over from other django packages of mine in #137.

The prime focus right now is #124, so this PR isn't necessary.

@tony tony closed this Oct 16, 2022
@tony tony deleted the simplify-settings branch October 16, 2022 21:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Settings conflicts with py.test
1 participant