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

google / openhtf / 985
63%

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

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

Jobs
ID Job ID Ran Files Coverage
1 985.1 (TOXENV=py27) 07 Oct 2016 06:56PM UTC 0
47.43
Travis Job 985.1
Source Files on build 985
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #985
  • db721266 on github
  • Prev Build on master (#983)
  • Next Build on master (#989)
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