Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def setup_function(function):
# Remove .restconfig file before running any test
try:
os.remove(HubInstance.configfile)
except OSError:
pass
def teardown_function(function):
# Remove .restconfig file after running any test
try:
os.remove(HubInstance.configfile)
except OSError:
pass