Skip to main content
added 2 characters in body
Source Link
Moberg
  • 5.6k
  • 4
  • 41
  • 67

You are not using classes in the intendedusual way when you pass in self to methods that you call on the class, rather than calling. Common is to call the methods on instances of the class and getting the self argument implicitly.

When you call Method.running_query_Athena(self) self is an instance of All_TestCases which does not have the method connecting_Athena.

Did you mean for All_TestCases to derive from All_Methods?

Why is All_Methods a class at all?

You are not using classes in the intended way when you pass in self to methods that you call on the class, rather than calling the methods on instances of the class and getting the self argument implicitly.

When you call Method.running_query_Athena(self) self is an instance of All_TestCases which does not have the method connecting_Athena.

Did you mean for All_TestCases to derive from All_Methods?

Why is All_Methods a class?

You are not using classes in the usual way when you pass in self to methods that you call on the class. Common is to call the methods on instances of the class and getting the self argument implicitly.

When you call Method.running_query_Athena(self) self is an instance of All_TestCases which does not have the method connecting_Athena.

Did you mean for All_TestCases to derive from All_Methods?

Why is All_Methods a class at all?

Source Link
Moberg
  • 5.6k
  • 4
  • 41
  • 67

You are not using classes in the intended way when you pass in self to methods that you call on the class, rather than calling the methods on instances of the class and getting the self argument implicitly.

When you call Method.running_query_Athena(self) self is an instance of All_TestCases which does not have the method connecting_Athena.

Did you mean for All_TestCases to derive from All_Methods?

Why is All_Methods a class?