Skip to content
This repository was archived by the owner on Mar 26, 2025. It is now read-only.

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

Merged
fsbraun merged 1 commit intomasterfrom
fix/easier-testing
Nov 20, 2023
Merged

fix: Allow for request-free context objects for testing purposes#659
fsbraun merged 1 commit intomasterfrom
fix/easier-testing

Conversation

@fsbraun
Copy link
Copy Markdown
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
@codecov
Copy link
Copy Markdown

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants