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

getsentry / raven-python / 566
51%

Build:
DEFAULT BRANCH: master
Ran 03 Dec 2013 05:31AM UTC
Jobs 3
Files 76
Run time –
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
566

Pull #389

travis-ci

dcramer
New context() API

This makes the API much easier to use, and resembles the raven-ruby implementation. Users can continually merge context (generally within their middleware), and simply need to call context.clear() to refresh it.

The following APIs are added as part of this changeset:

```
context() -- a public, yet likely unused API
>>> Client.context({'project': '1'})

user_context() -- a shortcut to set the user interface
>>> Client.user_context({'email': 'foo@example.com'})

tags_context() -- add additional tags to context (or overwrite an existing tag)
>>> Client.tags_context({'key': 'value'})

extra_context() -- add additional data to context (or overwrite an existing key in the data)
>>> Client.extra_context({'key': 'value'})
```
Pull Request #389: Updates context() API

63 of 63 new or added lines in 4 files covered. (100.0%)

1885 of 2900 relevant lines covered (65.0%)

1.95 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
100.0
raven/middleware.py
4
100.0
raven/base.py
5
100.0
raven/context.py

Uncovered Existing Lines

Lines Coverage ∆ File
1
100.0
raven/base.py
Jobs
ID Job ID Ran Files Coverage
12 566.12 (DJANGO=Django==1.5.5) 03 Dec 2013 05:31AM UTC 0
64.86
Travis Job 566.12
17 566.17 (DJANGO=Django==1.6) 03 Dec 2013 05:41AM UTC 0
65.0
Travis Job 566.17
21 566.21 (DJANGO="-e git+git://github.com/django/django.git#egg=Django") 03 Dec 2013 05:51AM UTC 0
65.0
Travis Job 566.21
Source Files on build 566
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #566
  • Pull Request #389
  • PR Base - master (#559)
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