@pytest.fixture(scope='module')
def static_file_directory():
 current_file = inspect.getfile(inspect.currentframe())
 current_directory = os.path.dirname(os.path.abspath(current_file))
 static_directory = os.path.join(current_directory, 'static')
 return static_directory

@ pytest . fixture ( scope = 'module' ) def static_file_directory ( ) : current_file = inspect . getfile ( inspect . currentframe ( ) ) current_directory = os . path . dirname ( os . path . abspath ( current_file ) ) static_directory = os . path . join ( current_directory , 'static' ) return static_directory
the static directory to serve .