Why to send redant from parent_test #270
-
In parent test.py we are already initializing self.redant the mixin object def _configure(self, mname: str, server_details: dict,
client_details: dict, log_path: str, log_level: str):
machine_detail = {**client_details, **server_details}
self.redant = RedantMixin(machine_detail)
self.redant.init_logger(mname, log_path, log_level)
self.redant.establish_connection() Then why are we providing it as an arg if we are already extending it self.mountpoint, self.client_list[0])
self.run_test(self.redant) |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
Yeah I think even i noticed it. In test case you can refer the functions either by redant.function() or self.redant.function() |
Beta Was this translation helpful? Give feedback.
-
Yeah, while making tests for bricks I found this |
Beta Was this translation helpful? Give feedback.
-
Yeah, that was done deliberately to save us all from the annoying |
Beta Was this translation helpful? Give feedback.
-
Let's take these things into discussion from next time...let's see how engaging this feature is. |
Beta Was this translation helpful? Give feedback.
Yeah, that was done deliberately to save us all from the annoying
self.redant
. Functionally it provides no extra features.self.redant
andredant
are both one and the same.