Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

assert_not_called method for mocks #65461

Closed
voidspace opened this issue Apr 16, 2014 · 3 comments
Closed

assert_not_called method for mocks #65461

voidspace opened this issue Apr 16, 2014 · 3 comments
Assignees
Labels
stdlib Python modules in the Lib dir type-bug An unexpected behavior, bug, or error

Comments

@voidspace
Copy link
Contributor

voidspace commented Apr 16, 2014

BPO 21262
Nosy @voidspace, @kushaldas
Files
  • issue21262.patch: Patch with required changes.
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = 'https://github.com/kushaldas'
    closed_at = <Date 2014-04-16.20:06:22.626>
    created_at = <Date 2014-04-16.18:30:13.937>
    labels = ['type-bug', 'library']
    title = 'assert_not_called method for mocks'
    updated_at = <Date 2014-04-16.20:06:22.624>
    user = 'https://github.com/voidspace'

    bugs.python.org fields:

    activity = <Date 2014-04-16.20:06:22.624>
    actor = 'python-dev'
    assignee = 'kushal.das'
    closed = True
    closed_date = <Date 2014-04-16.20:06:22.626>
    closer = 'python-dev'
    components = ['Library (Lib)']
    creation = <Date 2014-04-16.18:30:13.937>
    creator = 'michael.foord'
    dependencies = []
    files = ['34921']
    hgrepos = []
    issue_num = 21262
    keywords = ['patch']
    message_count = 3.0
    messages = ['216546', '216557', '216576']
    nosy_count = 3.0
    nosy_names = ['michael.foord', 'python-dev', 'kushal.das']
    pr_nums = []
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue21262'
    versions = ['Python 3.5']

    @voidspace
    Copy link
    Contributor Author

    voidspace commented Apr 16, 2014

    A shortcut for asserting that the call_count of a mock is 0.

    @voidspace voidspace added type-bug An unexpected behavior, bug, or error stdlib Python modules in the Lib dir labels Apr 16, 2014
    @kushaldas
    Copy link
    Member

    kushaldas commented Apr 16, 2014

    Patch with required changes. Code, docs, test and Misc/NEWS entry.

    @python-dev
    Copy link
    Mannequin

    python-dev mannequin commented Apr 16, 2014

    New changeset 9e5cbc46e916 by Kushal Das in branch 'default':
    Closes bpo-21262: New method assert_not_called for Mock.
    http://hg.python.org/cpython/rev/9e5cbc46e916

    @python-dev python-dev mannequin closed this as completed Apr 16, 2014
    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    stdlib Python modules in the Lib dir type-bug An unexpected behavior, bug, or error
    Projects
    None yet
    Development

    No branches or pull requests

    2 participants