예제 #1
0
def clean_functions():
    """
    Cleans the auto generated functions, run before pushing.
    :return: void
    """
    path = os.path.dirname(os.path.abspath(__file__))
    path = '/'.join(path.split('/')) + '/tests/'
    testing_files = find('*_functions.py', path)

    # soft reset.
    for a_file in SOFT_FILES:
        common_testing_code.reset_functions_file(a_file, hard_reset=False)

    # hard reset
    for a_file in testing_files + HARD_FILES:
        common_testing_code.reset_functions_file(a_file, hard_reset=True)
예제 #2
0
 def setUpClass(cls):
     common_testing_code.reset_functions_file(f.__file__, hard_reset=True)
 def setUpClass(cls):
     common_testing_code.reset_functions_file(common_testing_code.get_source_path(f.__file__))