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

fix: Allow for request-free context objects for testing purposes #659

Merged
merged 1 commit into from
Nov 20, 2023

Conversation

fsbraun
Copy link
Member

@fsbraun fsbraun commented Nov 19, 2023

While for any django CMS installation the request object is part of a plugin's context, this is not the case for all testing scenarios.

To ease testing this PR allows rendering of text plugins without the request object being part of the context.

@fsbraun fsbraun requested a review from a team November 19, 2023 16:44
Copy link

codecov bot commented Nov 19, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (e20b626) 75.38% compared to head (afdf25d) 76.36%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #659      +/-   ##
==========================================
+ Coverage   75.38%   76.36%   +0.98%     
==========================================
  Files          20       20              
  Lines         918      918              
  Branches      105      123      +18     
==========================================
+ Hits          692      701       +9     
+ Misses        196      191       -5     
+ Partials       30       26       -4     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@fsbraun fsbraun merged commit 2e463bf into master Nov 20, 2023
105 checks passed
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.

2 participants