create_db=True)
db.generate_mapping(create_tables=True)
```
Can there be a better method of doing that? Please let me know.
Thanks.
“ You are not born knowing everything.
You go on learning”
- Anubhav Yadav
--
https://mail.python.org/mailman/listinfo/python-list
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
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 test
> On 28-Aug-2017, at 04:35, Ben Finney wrote:
>
> Anubhav Yadav writes:
>
>> I want to write more test cases, specially that rely on database
>> insertions and reads and file IO.
>
> Thanks for taking seriously the importance of test cases for your code!
>
&
> 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 pu
> 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 you