Re: Pytest coverage report 100%

2022-05-19 Thread Kasper Laudrup
On 19/05/2022 05.45, Salima Begum wrote: > Hi, > Thank you for your response. We are basically writing a unit test for > Account_security function with this unit test code. > > > Unit test code : > > >     def test_Account_security_u

Re: Pytest coverage report 100%

2022-05-19 Thread Kasper Laudrup
On 19/05/2022 05.45, Salima Begum wrote: Hi, Thank you for your response. We are basically writing a unit test for Account_security function with this unit test code. Unit test code :     def test_Account_security_url(self):

Re: Pytest coverage report 100%

2022-05-18 Thread Salima Begum
Hi, Thank you for your response. We are basically writing a unit test for Account_security function with this unit test code. Unit test code : > def test_Account_security_url(self): > path = reverse('account-security') >

Re: Pytest coverage report 100%

2022-05-18 Thread Kasper Laudrup
On 18/05/2022 09.20, Salima Begum wrote: How to write a test case for total function without missing any statement. Please help me out how to write a test case for above function. You inject values in your test case to make sure all branches are covered. Sometimes that requires a bit more tri