Re: [pytest-dev] autospec for monkeypatch

2021-03-22 Thread Florian Schulze
There is a difference between setattr and setitem. The setattr variant actually has the raising option, the setitem variant does not. I think it might be useful to add it for setitem as well. For backward compatibility it would need to default to False. Maybe there is a better API to achieve th

Re: [pytest-dev] autospec for monkeypatch

2021-03-21 Thread Brian Okken
Yep. I think that’s it. I totally forgot about raising. I’ll try it out. - Brian > On Mar 21, 2021, at 1:06 PM, Bruno Oliveira wrote: > >  > > there is no option to only accept existing keys. > > I'm not sure what they mean... there's a `raising` keyword argument, which > defaults to True.

Re: [pytest-dev] autospec for monkeypatch

2021-03-21 Thread Bruno Oliveira
> there is no option to only accept existing keys. I'm not sure what they mean... there's a `raising` keyword argument, which defaults to True. [] Bruno On Sun, Mar 21, 2021 at 2:41 PM Brian Okken wrote: > I think I want to get some extra help on this good question. > - Brian > > - Brian > > B

[pytest-dev] autospec for monkeypatch

2021-03-21 Thread Brian Okken
I think I want to get some extra help on this good question. - Brian - Brian Begin forwarded message: > From: Dimitri Blyumin via Fireside > Date: March 20, 2021 at 7:36:58 PM PDT > To: br...@pythontesting.net > Subject: [Test & Code : Python Testing] Listener Feedback from Dimitri > Blyumin