• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

summernote / django-summernote / 451
96%

Build:
DEFAULT BRANCH: master
Ran 04 Sep 2018 05:59AM UTC
Jobs 3
Files 12
Run time 47s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
451

push

travis-ci

lqez
fix widget repeat rendering

If pop is used to get the value of 'summernote' on self.attrs, then the html returned by render() may change after the first call.  For example:
```python
w=SummernoteWidget(attrs={'summernote':{'height':'123px'}})
w.render('test','',attrs={'id':'test'})
```
Will render the iframe height as '123px', however a second call 
```python
w.render('test','',attrs={'id':'test'})
```
will render whatever the default value for height is instead of '123px' because the summernote value of attrs was popped in the first call and therefore is no longer available for subsequent calls.

This PR fixes that by chaning the self.attrs.pop('summernote', {}) calls in both widgets to self.attrs.get('summernote', {})

280 of 284 relevant lines covered (98.59%)

2.96 hits per line

Jobs
ID Job ID Ran Files Coverage
1 451.1 04 Sep 2018 05:59AM UTC 0
98.59
Travis Job 451.1
2 451.2 04 Sep 2018 06:00AM UTC 0
98.59
Travis Job 451.2
3 451.3 04 Sep 2018 06:00AM UTC 0
98.59
Travis Job 451.3
Source Files on build 451
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #451
  • 0838bee8 on github
  • Prev Build on master (#450)
  • Next Build on master (#452)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc