Ask Your Question
0

Which test fixture will run after executed the all test case in python?

asked 2018-08-08 06:53:59 -0500

azharuddin gravatar image

I am writing the test case in python programming. I need to delete the folders after completed the all the test case, which test fixture can be used to run after completing everything.

Thanks in advance

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2018-08-09 11:12:02 -0500

EBahr gravatar image

The following should do what you need it to do:

import shutil

shutil.rmtree(YOUR_FOLDER_TO_DELETE)
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

[hide preview]

Question Tools

1 follower

Stats

Asked: 2018-08-08 06:53:59 -0500

Seen: 186 times

Last updated: Aug 09 '18