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

craigcitro / apitools / 227
92%
master: 89%

Build:
Build:
LAST BUILD BRANCH: dedep
DEFAULT BRANCH: master
Ran 29 Mar 2018 03:53PM UTC
Jobs 1
Files 59
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

pending completion
227

push

travis-ci

craigcitro
Ensure client generation works smoothly in py3.

It turns out that generated clients had a few issues in python3:

* the discovery doc was returned as bytes, but `json.loads` wanted a string
* in python3, source files should be strings, not bytes
* \N, \u, and \U have special interpretations in python3 strings, which makes
  them invalid bare sequences in a docstring.

This commit updates these and re-enables tests for python3. The only remaining
py2-only check is the "did we generate the exact same source file" check,
which fails for trivial reasons (eg u'foo' vs. 'foo') for python3.

Since there are no more python27-only tests, I removed the "disable test in
2.7" helper.

1861 of 2350 branches covered (79.19%)

16 of 16 new or added lines in 3 files covered. (100.0%)

8792 of 9590 relevant lines covered (91.68%)

0.92 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
100.0
apitools/gen/client_generation_test.py
3
100.0
apitools/gen/util.py

Uncovered Existing Lines

Lines Coverage ∆ File
1
100.0
apitools/gen/gen_client_test.py
1
100.0
apitools/gen/gen_client.py
2
100.0
apitools/gen/client_generation_test.py
4
100.0
apitools/gen/util.py
10
100.0
apitools/base/protorpclite/protojson.py
11
100.0
apitools/gen/service_registry.py
64
100.0
apitools/base/py/base_api.py
Jobs
ID Job ID Ran Files Coverage
5 227.5 (TOX_ENV=py27-oauth2client4) 29 Mar 2018 03:53PM UTC 0
91.68
Travis Job 227.5
Source Files on build 227
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #227
  • f6fa5270 on github
  • Prev Build on dedep (#225)
  • Next Build on dedep (#228)
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

© 2025 Coveralls, Inc