If you believe this to be a question about Python unit testing instead of about Atom or Hydrogen, you stand a better chance of finding helpful input if you ask on a site where the majority of the users are well-versed in Python. Additionally, the screenshot you’ve posted does not show the full text of the error, so it’s difficult to identify what the problem is.
Without the full text of the error, I notice two things:
- Your function isn’t inside your class. Is it supposed to be? If the class doesn’t contain anything, what is it supposed to do? Have you tried executing the code with the function inside the class?
- The attribute cited in the
AttributeError starts with a long system path that points inside your Jupyter folder. Have you tried running the code with a package like
script to make sure that the problem doesn’t have something to do with Hydrogen?