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

craigcitro / apitools
92%
master: 89%

Build:
Build:
LAST BUILD BRANCH: dedep
DEFAULT BRANCH: master
Repo Added 12 Dec 2014 06:11PM UTC
Files 59
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

LAST BUILD ON BRANCH dedep
branch: SELECT
CHANGE BRANCH
x
  • No branch selected
  • adc
  • binary_py3
  • bounds
  • callbacks
  • chunked_download
  • cleanup
  • cleanup_tox
  • dedep
  • doubled
  • encoding
  • encoding_bug
  • fastlint
  • fix
  • fix_coverage
  • flags
  • gce_cleanup
  • gen_client_fix
  • genpip
  • internal_hooks
  • lint
  • master
  • metaclass
  • metadata
  • mimetype
  • more_pip
  • morelogging
  • oauth2client
  • oauth2l
  • protorpc_lite
  • py35
  • register_creds
  • release
  • scopes_arg
  • service
  • six_dep
  • storage_cleanup
  • trav
  • urls
  • utilfix
  • v0.4.1
  • v0.4.10
  • v0.4.11
  • v0.4.2
  • v0.4.3
  • v0.4.4
  • v0.4.8
  • v0.4.9
  • v0.5.0
  • v0.5.1
  • v0.5.2
  • v0.5.4

pending completion
228

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

Relevant lines Covered
Build:
Build:
9590 RELEVANT LINES 8792 COVERED LINES
0.92 HITS PER LINE
Source Files on master
Detailed source file information is not available for this build.

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
228 dedep 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 ... push 29 Mar 2018 03:58PM UTC craigcitro travis-ci pending completion  
227 dedep 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 ... push 29 Mar 2018 03:53PM UTC craigcitro travis-ci pending completion  
226 master Merge pull request #209 from craigcitro/lint Fix lint errors in apitools. push 29 Mar 2018 03:50PM UTC web-flow travis-ci pending completion  
225 dedep 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 ... push 29 Mar 2018 06:18AM UTC craigcitro travis-ci pending completion  
224 lint Fix lint errors in apitools. This makes a few updates to get the linter happy: * drop oauth2l and oauth2l_test * add some newlines * fix formatting in two error messages * switch `pep8` -> `pycodestyle` * drop the custom pylintrc and `run_pylint... push 29 Mar 2018 04:46AM UTC craigcitro travis-ci pending completion  
223 master Added response_encoding parameter to api client classes. (#206) On Python 3, httplib2 returns message contents as bytes, which cannot be read by json.loads(). It must first be decoded to text. Specifying this parameter tells the client to first... push 29 Mar 2018 03:52AM UTC web-flow travis-ci pending completion  
222 bounds Fix a bad bounds check for downloads. Previously, if we created a download with `auto_transfer=True` with the full download smaller than the default `chunksize`, and then called `StreamInChunks`, we'd end up downloading the full content twice. Th... push 22 Aug 2017 07:44AM UTC craigcitro travis-ci pending completion  
221 master Drop some dead travis environments. push 22 Aug 2017 07:41AM UTC craigcitro travis-ci pending completion  
220 trav Drop some dead travis environments. push 22 Aug 2017 07:19AM UTC craigcitro travis-ci pending completion  
219 trav Merge pull request #173 from cherba/master Update for v0.5.14 release. push 22 Aug 2017 07:17AM UTC web-flow travis-ci pending completion  
See All Builds (201)
  • Repo on GitHub
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