django-cms / djangocms-text-ckeditor

Text Plugin for django CMS using CKEditor 4
https://www.django-cms.org/en/repositories-plugins/
BSD 3-Clause "New" or "Revised" License
164 stars 186 forks source link

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

Closed fsbraun closed 7 months ago

fsbraun commented 7 months ago

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.

codecov[bot] commented 7 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

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

Additional details and impacted files ```diff @@ 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 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.