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

google / openhtf / 985 / 1
64%
master: 64%

Build:
DEFAULT BRANCH: master
Ran 07 Oct 2016 06:56PM UTC
Files 49
Run time 3s
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

07 Oct 2016 06:53PM UTC coverage: 47.428% (+0.3%) from 47.125%
TOXENV=py27

push

travis-ci

jettisonjoe
Support for string formatting of name and docstring when using with_plugs (#446)

I realized that passing variables to PhaseOptions.name, Measurement.name and Measurement.docstring for string formatting was not supported by with_plugs.

The previous implementation of PhaseDescriptor.with_args also assumed that all necessary variables would be present when it called otherwise string.format raises a KeyError.

Changes:

  * safe_format in util that allows partial substitution of variables into the template string, similar to string.Template.safe_substitute.
  * Renamed method names on PhaseOptions and Measurement from with_args -> format_strings. Reason: I didn't want to call with_args from within with_plugs and all these two methods were doing were string formatting so with_args was a misnomer.
  * Added unit test for with_plugs
  * Updated examples/with_plugs.py

2001 of 4219 relevant lines covered (47.43%)

0.47 hits per line

Source Files on job 985.1 (TOXENV=py27)
  • Tree
  • List 0
  • Changed 3
  • Source Changed 3
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 985
  • Travis Job 985.1
  • db721266 on github
  • Prev Job for TOXENV=py27 on master (#983.1)
  • Next Job for TOXENV=py27 on master (#989.1)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc