Skip to content

Commit

Permalink
Fix couple of failing tests #138
Browse files Browse the repository at this point in the history
Signed-off-by: tdruez <[email protected]>
  • Loading branch information
tdruez committed Jul 17, 2024
1 parent ce9311c commit 565ad1b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
9 changes: 7 additions & 2 deletions component_catalog/tests/test_license_expression_dje.py
Original file line number Diff line number Diff line change
Expand Up @@ -309,11 +309,16 @@ def test_get_dataspace_licensing(self):

def test_render_expression_as_html(self):
expression_as_html = render_expression_as_html(str(self.license1.key), self.dataspace)
expected = '<a href="/licenses/Starship/apache-2.0/" title="Apache 2.0">apache-2.0</a>'
expected = (
'<span class="license-expression">'
'<a href="/licenses/Starship/apache-2.0/" title="Apache 2.0">apache-2.0</a>'
"</span>"
)
self.assertEqual(expected, expression_as_html)

expression_as_html = render_expression_as_html("unknown", self.dataspace)
self.assertEqual("unknown", expression_as_html)
expected = '<span class="license-expression">unknown</span>'
self.assertEqual(expected, expression_as_html)


def _print_sequence_diff(left, right):
Expand Down
1 change: 1 addition & 0 deletions dje/tests/test_permissions.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ def test_permissions_get_all_tabsets(self):
"notice",
"license",
"owner",
"dependencies",
"activity",
"imports",
"history",
Expand Down

0 comments on commit 565ad1b

Please sign in to comment.