Skip to content

Commit

Permalink
Fix import_aliases config key in sample_project
Browse files Browse the repository at this point in the history
  • Loading branch information
lieryan committed Jan 30, 2024
1 parent 9134d03 commit b266add
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion ropetest/contrib/autoimporttest.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ def test_search_alias(self):

def test_alias_updated_from_prefs(self):
self.mod2.write("myvar = None\n")
self.project.prefs.import_aliases = [("mod2_alias", "pkg.mod2")]
self.project.prefs.autoimport.aliases = [("mod2_alias", "pkg.mod2")]
self.importer.clear_cache()
self.importer.update_resource(self.mod2)
import_statement = ("import pkg.mod2 as mod2_alias", "mod2_alias")
Expand Down
1 change: 0 additions & 1 deletion ropetest/testutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ def sample_project(foldername=None, **kwds):
"automatic_soa": False,
"ignored_resources": [".ropeproject", "*.pyc"],
"import_dynload_stdmods": False,
"import_aliases": [],
}
prefs.update(kwds)
project = rope.base.project.Project(root, **prefs)
Expand Down

0 comments on commit b266add

Please sign in to comment.