Skip to content

Commit

Permalink
Fix tests after rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
fmeum committed Feb 12, 2024
1 parent 14ce414 commit b3e272c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2549,6 +2549,6 @@ public void labelToDisplayForm() throws Exception {
throw result.getError().getException();
}
assertThat(result.get(skyKey).getModule().getGlobal("data"))
.isEqualTo("foo://:foo bar:@@data_repo~1.0//:bar baz:@@canonical_name//:baz");
.isEqualTo("foo://:foo bar:@@data_repo~//:bar baz:@@canonical_name//:baz");
}
}
6 changes: 3 additions & 3 deletions src/test/py/bazel/bzlmod/bazel_module_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -964,11 +964,11 @@ def testLabelToDisplayForm(self):
self.assertIn('workspace_repo_macro => @workspace_repo//:workspace_repo_macro', stderr)

# Display form of labels in extensions uses canonical names.
self.assertIn('ext_impl => @@foo~1.0//:ext_impl', stderr)
self.assertIn('ext_repo_impl => @@foo~1.0//:repo_impl', stderr)
self.assertIn('ext_impl => @@foo~//:ext_impl', stderr)
self.assertIn('ext_repo_impl => @@foo~//:repo_impl', stderr)

# Display form of labels in WORKSPACE loaded files uses canonical names.
self.assertIn('workspace_repo_impl => @@foo~1.0//:repo_impl', stderr)
self.assertIn('workspace_repo_impl => @@foo~//:repo_impl', stderr)


if __name__ == '__main__':
Expand Down

0 comments on commit b3e272c

Please sign in to comment.