Re: Need advice on writing better test cases.

2017-08-28 Thread Anubhav Yadav
> A good way to learn unit testing and regression testing is to download > the Python source code and read the test suites. It’s a fantastic idea. I will also have a good understanding of the internals of the standard library and at I can learn more about testing. Any specific module that

Re: Need advice on writing better test cases.

2017-08-28 Thread Anubhav Yadav
> If you have a function and you want to assert *that function's* > behaviour, you can avoid external dependencies during the test run by > providing fake resources. These can be mocks (e.g. with ‘unittest.mock’) > or other fake resources that are going to behave exactly how you want, > for the

Re: Need advice on writing better test cases.

2017-08-28 Thread Anubhav Yadav
> On 28-Aug-2017, at 04:35, Ben Finney <ben+pyt...@benfinney.id.au> wrote: > > Anubhav Yadav <anubhav.ya...@gmx.com> writes: > >> I want to write more test cases, specially that rely on database >> insertions and reads and file IO. > > Thanks for tak

Need advice on writing better test cases.

2017-08-27 Thread Anubhav Yadav
Hello, I am a (self-learned) python developer and I write a lot of python code everyday. I try to do as much unit testing as possible. But I want to be better at it, I want to write more test cases, specially that rely on database insertions and reads and file IO. Here are my use-cases for

Re: [python-uk] URGENT: Volunteers for teacher collaboration please... :-)

2016-02-17 Thread Anubhav Yadav
. > > If this is of interest to you, please get in touch ASAP and I can start > to coordinate things with CAS. > > I'm going to put in a grant request to the PSF to see if we can cover > travel costs for developers. But there's no guarantee this will come about. > > Best wishes, > > N. > > > -- > https://mail.python.org/mailman/listinfo/python-list > > -- Regards, Anubhav Yadav KPIT Technologies, Pune. -- https://mail.python.org/mailman/listinfo/python-list