Rename Method refactoring allows the use of previously declared field name
It would be nice if Rope sent an alert to the user to prevent incompatible variable types in the code
import unittest
from main import formats
CSV_FILE = 'data.csv'
class TestFormats(unittest.TestCase):
def test_detect_csv(self):
with open(CSV_FILE) as fp:
format = formats.detect(fp)
assert_equal(format, ",")
Apply the Rename Method refactoring with the new name 'DEFAULT_ENCODING' to the method 'detect' in formats.py
Rename Method refactoring allows the use of previously declared field name It would be nice if Rope sent an alert to the user to prevent incompatible variable types in the code
structure
formats.py:
test.py: