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

google / oauth2client / 777
100%

Build:
DEFAULT BRANCH: master
Ran 01 Dec 2015 02:05AM UTC
Jobs 1
Files 41
Run time 1s
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
777

Pull #347

travis-ci

jonparrott
[DO NOT MERGE] Re-write Storage

This is a rough-cut to sanity check the concept. Docstrings and full tests still missing.

New:
* `client.Storage` is an abstract base class.
* `locked_storage.LockedStorage` provides locking based on context managers and defaults to `threading.Lock`.

Changed:
* All `Storage` subclasses have been updated to use the new base class.
* `file.Storage` renamed to `file_storage.FileStorage`.
* `keyring_storage.Storage` renamed to `keyring_storage.KeyringStorage`.
* `django_orm.Storage` renamed to `django_orm.DjangoOrmStorage`.
* `KeyringStorage` and `FileStorage` are no longer threadsafe by default.

**Questionable changes**

As mentioned in [a comment on #344], `Credentials` has the unfortunate behavior of using the Storage's lock to prevent concurrently refreshing the credentials. IMO, Refresh locking should be handled as a separate concern. For now, `Storage` implements a no-op `lock()`.
Pull Request #347: [DO NOT MERGE] Re-write Storage

88 of 88 new or added lines in 12 files covered. (100.0%)

5187 of 5535 relevant lines covered (93.71%)

0.94 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
100.0
oauth2client/client.py
1
100.0
oauth2client/locked_storage.py

Uncovered Existing Lines

Lines Coverage ∆ File
1
100.0
tests/test_file.py
2
100.0
tests/test_keyring_storage.py
3
100.0
oauth2client/client.py
Jobs
ID Job ID Ran Files Coverage
2 777.2 (TOX_ENV=py27) 01 Dec 2015 02:05AM UTC 0
93.71
Travis Job 777.2
Source Files on build 777
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #777
  • Pull Request #347
  • PR Base - master (#766)
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