called_once not available on Mocker

Bug #1630159 reported by Jamie Lennox
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
requests-mock
Fix Released
Undecided
Jamie Lennox

Bug Description

The called_once function method was added to the adapter as part of [1], however it was not added to the _PROXY_FUNCS list on the Mocker, so it cant be called as:

with requests_mock.mock() as m:
    self.assertTrue(m.called_once)

[1] https://review.openstack.org/#/c/364672/

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to requests-mock (master)

Fix proposed to branch: master
Review: https://review.openstack.org/381496

Changed in requests-mock:
assignee: nobody → Jamie Lennox (jamielennox)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to requests-mock (master)

Reviewed: https://review.openstack.org/381496
Committed: https://git.openstack.org/cgit/openstack/requests-mock/commit/?id=3deef1a4545a30bacbb3c37fb84c8e7bd1b78578
Submitter: Jenkins
Branch: master

commit 3deef1a4545a30bacbb3c37fb84c8e7bd1b78578
Author: Jamie Lennox <email address hidden>
Date: Tue Oct 4 19:10:32 2016 +1100

    Add called_once to Mocker

    The called_once function was added to the Matcher and the Adapter but
    not the top level Mocker function.

    Change-Id: I4daa839d931b44fa69133ace663d41c84796b4ba
    Closes-Bug: #1630159

Changed in requests-mock:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.