Skip to content

Commit

Permalink
changed the collection and assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
omehes committed Oct 28, 2024
1 parent 4094a22 commit 79a0e78
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions backend/app/tests/ui/test_e2e_pdf_jobs.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
@pytest.mark.nondestructive
@pytest.mark.parametrize(
"repo, book, version",
[("osbooks-otto-book", "ottó-könyv", "main")],
[("osbooks-otto-book", "hellas", "main")],
)
def test_e2e_pdf_jobs(chrome_page_slow, corgi_base_url, repo, book, version):
# GIVEN: Playwright, chromium and the corgi_base_url
Expand Down Expand Up @@ -99,10 +99,11 @@ def test_e2e_pdf_jobs(chrome_page_slow, corgi_base_url, repo, book, version):

flat_liszt = [item for sublist in liszt for item in sublist]

print(flat_liszt)

try:
assert any("Preface" in word for word in flat_liszt)
assert any("Chapter Outline" in word for word in flat_liszt)
assert any("Index" in word for word in flat_liszt)

except AssertionError:
pytest.fail(
Expand Down

0 comments on commit 79a0e78

Please sign in to comment.