Skip to content

Commit

Permalink
metadata-service[orchestrator]: fix broken test (#45120)
Browse files Browse the repository at this point in the history
  • Loading branch information
alafanechere authored Sep 4, 2024
1 parent 84f3b03 commit b1b1187
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -460,6 +460,7 @@ def test_set_language_from_tags():

mock_metadata_entry = mock.Mock()
mock_metadata_entry.metadata_definition.dict.return_value = metadata
mock_metadata_entry.dependency_file_url = "test-dependency-file-url"

result = metadata_to_registry_entry(mock_metadata_entry, "oss")
assert result["language"] == "manifest-only"
Expand All @@ -481,6 +482,6 @@ def test_language_from_tags_does_not_override_top_level_language():

mock_metadata_entry = mock.Mock()
mock_metadata_entry.metadata_definition.dict.return_value = metadata

mock_metadata_entry.dependency_file_url = "test-dependency-file-url"
result = metadata_to_registry_entry(mock_metadata_entry, "oss")
assert result["language"] == "python"

0 comments on commit b1b1187

Please sign in to comment.