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

voxpupuli / pypuppetdb / 376
85%
master: 85%

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

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

73 of 73 new or added lines in 1 file covered. (100.0%)

649 of 768 relevant lines covered (84.51%)

4.98 hits per line

Jobs
ID Job ID Ran Files Coverage
1 376.1 14 Aug 2019 07:09PM UTC 0
83.85
Travis Job 376.1
2 376.2 14 Aug 2019 07:09PM UTC 0
82.55
Travis Job 376.2
3 376.3 14 Aug 2019 07:09PM UTC 0
82.55
Travis Job 376.3
4 376.4 14 Aug 2019 07:09PM UTC 0
82.55
Travis Job 376.4
5 376.5 (LANG=C) 14 Aug 2019 07:09PM UTC 0
82.55
Travis Job 376.5
6 376.6 (LANG=C) 14 Aug 2019 07:09PM UTC 0
83.85
Travis Job 376.6
Source Files on build 376
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #376
  • Pull Request #155
  • PR Base - master (#372)
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