Skip to content

Commit 517775d

Browse files
jherlandmknorps
andauthored
test_local_env: Improve test case with better names
This example is more informative when we change the imports exposed by the package for each mapping. Co-authored-by: Maria Knorps <[email protected]>
1 parent 8e74bec commit 517775d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/test_local_env.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -127,14 +127,14 @@ def test_local_env__prefers_first_package_found_in_sys_path(isolate_default_reso
127127
# the one that Python would end up importing, and it is therefore also the
128128
# one that we should resolve to.
129129

130-
site_dir1 = isolate_default_resolver({"other": {"other"}})
131-
site_dir2 = isolate_default_resolver({"other": {"other"}})
130+
site_dir1 = isolate_default_resolver({"other": {"skipped"}})
131+
site_dir2 = isolate_default_resolver({"other": {"actual"}})
132132
assert site_dir1 != site_dir2
133133
assert sys.path[0] == str(site_dir2)
134134
actual = LocalPackageResolver().lookup_packages({"other"})
135135
assert actual == {
136136
"other": Package(
137-
"other", {"other"}, LocalPackageResolver, {str(site_dir2): {"other"}}
137+
"other", {"actual"}, LocalPackageResolver, {str(site_dir2): {"other"}}
138138
),
139139
}
140140

0 commit comments

Comments
 (0)