code: def include_class_in_title(result):
      
      classname = result.get("classname", "")
      if classname:
          filepath = result.get("file", "")
          title = result.get("title")
          if title and "/" in filepath and "." in classname:
              fname = filepath.split("/")[-1].replace(".py", "")
              last_classname = classname.split(".")[-1]
              # last part of classname is not file name
              if fname != last_classname and last_classname not in title:
                  result["title"] = "{}.{}".format(last_classname, title)
          # we don't need to pass classnames?
          del result["classname"]
docs: Makes sure that test class is included in "title".
  
      e.g. "TestServiceRESTAPI.test_power_parent_service"
  
      >>> result = {"title": "test_foo", "classname": "foo.bar.baz.TestFoo",
      ...    "file": "foo/bar/baz.py"}
      >>> include_class_in_title(result)
      >>> str(result.get("title"))
      'TestFoo.test_foo'
      >>> result.get("classname")