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

mock should be able to change what classes it inherits from #61

Open
Jaymon opened this issue Feb 11, 2020 · 4 comments
Open

mock should be able to change what classes it inherits from #61

Jaymon opened this issue Feb 11, 2020 · 4 comments

Comments

@Jaymon
Copy link
Owner

Jaymon commented Feb 11, 2020

The idea would be to be able to have the mocked instances easily pass isinstance and issubclass checks.

This is relevant:

search:

  • python change parent classes
  • python create a new class programmatically
@Jaymon
Copy link
Owner Author

Jaymon commented Feb 11, 2020

These might also be relevant: Adding a Method to an Existing Object Instance

search:

  • python add method to instance

@Jaymon
Copy link
Owner Author

Jaymon commented Mar 29, 2024

This will be easier than expected using the __class__ attribute (via)

@Jaymon
Copy link
Owner Author

Jaymon commented May 3, 2024

@Jaymon
Copy link
Owner Author

Jaymon commented May 7, 2024

While working on something else I had all these links open that are more related to this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant