Skip to content

Commit

Permalink
Fix rest tests
Browse files Browse the repository at this point in the history
  • Loading branch information
MaximPlusov committed Sep 8, 2024
1 parent 1a976d6 commit d0d88cb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def test_api_validate_details_html_check(
html = page.content.decode("utf-8")
tree = etree.parse(StringIO(html), parser=parser)
file = tree.xpath('//*[@id="table1"]//tr[1]//td[2]/text()')[0]
profile = tree.xpath('//*[@id="table1"]//tr[2]//td[2]/text()')[0]
profile = tree.xpath('//*[@id="table1"]//tr[2]//td[2]/a[1]/text()')[0]

assert file == "a.pdf"
assert profile == expected_profile_name
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def test_api_validate_sha_profileid_html_check(
tree = etree.parse(StringIO(html), parser=parser)

file = tree.xpath('//*[@id="table1"]//tr[1]//td[2]/text()')[0]
profile = tree.xpath('//*[@id="table1"]//tr[2]//td[2]/text()')[0]
profile = tree.xpath('//*[@id="table1"]//tr[2]//td[2]/a[1]/text()')[0]

assert file == "a.pdf"
assert profile == expected_profile_name

0 comments on commit d0d88cb

Please sign in to comment.