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

voxpupuli / pypuppetdb / 376 / 5
85%
master: 85%

Build:
Build:
LAST BUILD BRANCH: add_python_3.10
DEFAULT BRANCH: master
Ran 14 Aug 2019 07:09PM UTC
Files 7
Run time 2s
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

14 Aug 2019 07:07PM UTC coverage: 82.552% (-2.0%) from 84.586%
LANG=C

Pull #155

travis-ci

web-flow
QueryBuilder.py: Use native data structures for internal representation

The [PuppetDB documentation][1] says that queries are JSON arrays, so
this commit updates all of the QueryBuilder classes to use lists/dicts
for the internal representation and defers the JSON serialization until
the `str()` call. This avoids having to manually quote things or do
string manipulation. `obj.json_data()` will return the native data
structure and `str(obj)` will return the serialized JSON.

Most of the changes to the tests are just fixing whitespace, but there
are a few places where duplicated quotes and backslash escaping were
fixed.

[1]: https://puppet.com/docs/puppetdb/5.1/api/query/v4/facts.html#url-parameters

Fixes: #140

Signed-off-by: Andrew Gunnerson <andrew.gunnerson@us.ibm.com>
Pull Request #155: QueryBuilder.py: Use native data structures for internal representation

634 of 768 relevant lines covered (82.55%)

0.83 hits per line

Source Files on job 376.5 (LANG=C)
  • Tree
  • List 0
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 363
  • Travis Job 376.5
  • a11bae9b on github
  • Prev Job for LANG=C on json (#372.6)
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