First time here? We are a friendly community of Power Systems Engineers. Check out the FAQ!

Ask Your Question
0

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

asked Aug 8 '18

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

1 answer

Sort by » oldest newest most voted
0

answered Aug 9 '18

EBahr gravatar image

The following should do what you need it to do:

import shutil

shutil.rmtree(YOUR_FOLDER_TO_DELETE)
link

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.
Want to format code in your answer? Here is a one minute demo on Youtube

Add Answer

[hide preview]

Question Tools

1 follower

Stats

Asked: Aug 8 '18

Seen: 194 times

Last updated: Aug 09 '18