@pytest.fixture()
def filepath():
 def make_filepath(filename):
  return os.path.join(FILES_DIR, filename)
 return make_filepath

@ pytest . fixture ( ) def filepath ( ) : def make_filepath ( filename ) : return os . path . join ( FILES_DIR , filename ) return make_filepath
returns full file path for test files .