issues Search Results · repo:mcous/decoy language:Python
Filter by
35 results
(59 ms)35 results
inmcous/decoy (press backspace or delete to remove)Hi, I have the following problem.
Problem
using decoy.mock(cls=MyPydanticBasedClass) do not work when creating a pydantic model with a mocked pydantic model. The
error value is not a valid dict happen. ...
wontfix
samuelint
- 3
- Opened on Jun 12, 2024
- #255
Hello again!
While using the library, we noticed that Decoy doesn t raise an exception when:
- We try calling a method that is not part of the mocked spec
- We try calling a method that is part of ...
andreaevooq
- 5
- Opened on Jun 15, 2023
- #204
Hi,
Is this library production ready?
EDIT: is there a way to create stubs where arguments are Pandas DataFrames? It fails with ValueError: The truth value of
a DataFrame is ambiguous. Use a.empty, a.bool(), ...
enhancement
help wanted
question
andreaevooq
- 8
- Opened on Jun 8, 2023
- #200
Sorry for the holiday bug report. 😛
Current behavior
from decoy import Decoy
class C:
async def m() - int:
pass
@classmethod
async def cm(cls) - int:
pass
async def ...
SyntaxColoring
- 1
- Opened on Dec 22, 2022
- #146
It s usually a bad idea to mock out an object s private methods and properties (named with leading underscores), but
there are some rare situations where it s your best option. You may, for example, deem ...
mcous
- Opened on Oct 24, 2022
- #144
A Generic alias has an __origin__ property that can be used to get the generic class itself. A name and class
specification can be pulled from there
bug
mcous
- Opened on Sep 7, 2022
- #142
The then_do method is a useful advanced method for some tests, especially when you re not in a position to change the
API of a dependency at the time you re writing the test.
However, the then_do method ...
enhancement
mcous
- Opened on Jun 4, 2022
- #136
If you have production code that looks like this:
with foo.bar(bar_arg) as baz:
...
Then its Decoy test might do:
bar_arg_captor = matchers.Captor()
decoy.when(foo.bar(bar_arg_captor())).then_enter_with( ...
bug
SyntaxColoring
- 2
- Opened on Jun 3, 2022
- #135
The MiscalledStubWarning checks should ignore property events entirely
bug
mcous
- Opened on Mar 24, 2022
- #125

Learn how you can use GitHub Issues to plan and track your work.
Save views for sprints, backlogs, teams, or releases. Rank, sort, and filter issues to suit the occasion. The possibilities are endless.Learn more about GitHub IssuesProTip!
Restrict your search to the title by using the in:title qualifier.
Learn how you can use GitHub Issues to plan and track your work.
Save views for sprints, backlogs, teams, or releases. Rank, sort, and filter issues to suit the occasion. The possibilities are endless.Learn more about GitHub IssuesProTip!
Restrict your search to the title by using the in:title qualifier.