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

jamielennox / requests-mock / 44
97%

Build:
DEFAULT BRANCH: master
Ran 13 Dec 2014 06:44PM UTC
Jobs 2
Files 7
Run time 31s
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
44

Pull #4

travis-ci

prmtl
Allow to decorate class with mock

Now it is possible to mock not only a function but also a class:

  class TestClass(object)

    def test_func_a(self, m):
        m.register_uri('GET', 'http://test.com', text='data')
        ...

    def test_func_b(self, m)
        m.register_uri('GET', 'http://test.com', text='data')
        ...

This new behavior mimics behavior of `patch` from `mock` library.
Pull Request #4: [WIP] Allow to decorate class with mock

315 of 325 relevant lines covered (96.92%)

1.94 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
1
100.0
requests_mock/mocker.py
Jobs
ID Job ID Ran Files Coverage
2 44.2 13 Dec 2014 06:44PM UTC 0
96.92
Travis Job 44.2
4 44.4 13 Dec 2014 06:45PM UTC 0
96.92
Travis Job 44.4
Source Files on build 44
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #44
  • Pull Request #4
  • PR Base - master (#41)
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