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
Rename Field refactoring allows you to rename a class field with class method names
It would be nice if Rope sent an alert to the user to avoid call errors
from __future__ importunicode_literalsimportunittestfrommain.mainimportConllExtractorclassTestConllExtractor(unittest.TestCase):
defsetUp(self):
self.extractor=ConllExtractor()
self.text='Python is 'deftest_extract(self):
noun_phrases=self.extractor.extract(self.text)
self.assertTrue("Python"innoun_phrases)
Apply the Rename Field refactoring with the new name 'extract' to the field 'ConllExtractor.POS_TAGGER'
After the transformation, the unit test will fail.
The text was updated successfully, but these errors were encountered:
Rename Field refactoring allows you to rename a class field with class method names
It would be nice if Rope sent an alert to the user to avoid call errors
Steps to reproduce the behavior:
structure
main.py:
test.py:
After the transformation, the unit test will fail.
The text was updated successfully, but these errors were encountered: