<div dir="ltr"><br><br><div class="gmail_quote"><div dir="ltr">On Wed, Feb 8, 2017 at 6:37 PM arun kali raja &lt;<a href="mailto:arunsep886@gmail.com">arunsep886@gmail.com</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto" class="gmail_msg"><div class="gmail_msg"><div dir="auto" class="gmail_msg">If thatz the case can i have one module level fixture which calls the <br></div><span style="font-family:sans-serif" class="gmail_msg">configurationBackup method and for the function level backup instead of writing another fixture can i use the pytest hook </span><br class="gmail_msg"><div class="gmail_extra gmail_msg"><span style="color:rgb(36,39,41);font-family:arial,&quot;helvetica neue&quot;,helvetica,sans-serif;font-size:16.05px" class="gmail_msg">pytest_runtest_call to call the </span><span style="font-family:sans-serif" class="gmail_msg">configurationBackup method.. ?</span></div><div class="gmail_extra gmail_msg" dir="auto"><font face="sans-serif" class="gmail_msg"><br class="gmail_msg"></font></div><div class="gmail_extra gmail_msg" dir="auto"><font face="sans-serif" class="gmail_msg">Which is the correct and advantageous approach? </font></div></div></div></blockquote><div><br></div><div>IMO it is simpler to have two fixtures; you would have to more obscure code in `pytest_runtest_call` to accomplish the same thing.</div><div><br></div><div>Cheers,</div><div>Bruno.</div></div></div>