8000 explicitly reject Fake() recreation with different attributes · Issue #143 · haarcuba/testix · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
explicitly reject Fake() recreation with different attributes #143
Open
@haarcuba

Description

@haarcuba

assume you have a Fake('name', thing='something'), then later in the scenario you want some call to return Fake('name', thing='another') - it won't work because Fake is a singleton.

This results in confusion.

Therefore: make Fake() raise in this case.

of course, you should still be allowed to redefine a Fake between different scenarios.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0