Re: Re: Mock object bug with assert_not_called (Steve D'Aprano)

2016-12-28 Thread Steve D'Aprano
On Thu, 29 Dec 2016 10:36 am, Diego Vela wrote: > Re: mock bug. > > Python 2.7.8 > > > I'll provide a sketch of the code since it is from work and I'm not > allowed to share it directly. We don't want to see your entire code base. We want to see the smallest, simplest example that demonstrates

Re: Re: Mock object bug with assert_not_called (Steve D'Aprano)

2016-12-28 Thread Diego Vela
Re: mock bug. Python 2.7.8 I'll provide a sketch of the code since it is from work and I'm not allowed to share it directly. Sketch of Code: @patch('emails.emails.render_to_string') def test_send_email(self, render): context = { 'key': value } emails.send_email() # calls r

Re: Mock object bug with assert_not_called

2016-12-27 Thread Steve D'Aprano
On Wed, 28 Dec 2016 07:15 am, Diego Vela wrote: > Dear all, > >>From reading the documentation it seemed like this is the place to post a > bug. If not please let me know where is the proper place to do so. Once you are sure that it truly is a bug, then the proper place is the bug tracker: htt