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

certbot / certbot / 6236
99%

Build:
DEFAULT BRANCH: master
Ran 11 Jan 2017 12:28AM UTC
Jobs 1
Files 148
Run time 8s
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
6236

push

travis-ci

web-flow
Stop IDisplay AssertionErrors (#4010)

Fixes #3996.

I'm pretty confident this PR solves the problem. I've audited all calls to IDisplay methods and the assertions done in certbot.display.util are now done in all our unit tests.

With that said, it wouldn't hurt to have someone else double check I didn't miss anything. The easiest way to do this is to grep for IDisplay in our code and ensure all calls to IDisplay methods are valid. This means every method call other than notification (because a notification call is always OK) either provides a value for default or force_interactive. This is defined in interfaces.py.

I've also been considering removing the assertion that's been causing us trouble here from our release. The only argument I have for not doing so is it may hinder 3rd party plugin development. When they use IDisplay, they have the same problem as we do with prompting users without a TTY. Not keeping this assertion in makes it more likely they won't notice the issue and Certbot will crash on an unsuspecting user.

With that said, none of our known 3rd party plugins use IDisplay at all.

* Provide force_interactive in _get_certname

* Use force_interactive when asking for webroot

* Factor IDisplay assertion into it's own function

* Add util.patch_get_utility()

* Allow custom path to patch_get_utiity

* Change GetEmailTest to use patch_get_utility

* Use new_callable to create new objects

* Modify tests to use patch_get_utility

* Improve FreezableMock documentation

* Add user facing error to TTY magic

* Comment out assert_valid_call

* Add test_input_assertion_fail2()

17610 of 17805 relevant lines covered (98.9%)

0.99 hits per line

Jobs
ID Job ID Ran Files Coverage
1 6236.1 (TOXENV=cover) 11 Jan 2017 12:28AM UTC 0
98.9
Travis Job 6236.1
Source Files on build 6236
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #6236
  • 9c9004af on github
  • Prev Build on master (#6230)
  • Next Build on master (#6239)
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