You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
importunittestfromenimportparseaspattern_parseimporten.parsersasparsersclassTestPatternParser(unittest.TestCase):
defsetUp(self):
self.parser=PatternParser()
self.text="And now for something completely different."deftest_parse(self):
self.assertEqual(pattern_parse(self.text), pattern_parse(self.text))
The transformation changes the attribute that is passed to the original function.
The result is: self.assertEqual(pattern_parse(__0__self.parser.text), pattern_parse(self.text))
Causing test fail
The text was updated successfully, but these errors were encountered:
Inline method refactoring passes the wrong parameter to the inlined function body
Steps to reproduce the behavior:
structure
en.__init.py__:
en.parsers.py:
test.test.py:
Apply the Inline Method refactoring to 'PatternParser.parse'
Expected code after refactoring:
en.__init.py__:
en.parsers.py:
test.test.py:
The transformation changes the attribute that is passed to the original function.
The result is: self.assertEqual(pattern_parse(__0__self.parser.text), pattern_parse(self.text))
Causing test fail
The text was updated successfully, but these errors were encountered: