-
Notifications
You must be signed in to change notification settings - Fork 284
node_integration_tests - Remove repeated part of datadirs #4396
Conversation
maaktweluit
commented
Jun 27, 2019
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks ok. Do you still need to replace __name__
though?
Was looking at that @shadeofblue @etam do you know why it is there? can we safely remove it? |
Codecov Report
@@ Coverage Diff @@
## develop #4396 +/- ##
========================================
Coverage 88.49% 88.49%
========================================
Files 225 225
Lines 19845 19845
========================================
Hits 17561 17561
Misses 2284 2284 |
AFAICT replacing |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it would be nicer to dynamically resolve the required path or build the relative id from the scratch. Some helpful definitions from the unittest
module:
def id(self):
return "%s.%s" % (strclass(self.__class__), self._testMethodName)
def strclass(cls):
return "%s.%s" % (cls.__module__, cls.__qualname__)
@Wiezzel @mfranciszkiewicz Based on the review comments i updated the PR to use |