@pytest.fixture(scope='module')
def static_file_content(static_file_path):
 with open(static_file_path, 'rb') as file:
  return file.read()

@ pytest . fixture ( scope = 'module' ) def static_file_content ( static_file_path ) : with open ( static_file_path , 'rb' ) as file : return file . read ( )
the content of the static file to check .