Skip to content

Commit

Permalink
amendments as per review
Browse files Browse the repository at this point in the history
  • Loading branch information
omehes committed Oct 28, 2024
1 parent 79a0e78 commit c23eb7c
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions backend/app/tests/ui/test_e2e_pdf_jobs.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,9 @@ def test_e2e_pdf_jobs(chrome_page_slow, corgi_base_url, repo, book, version):
assert ".pdf" in href_pdf_url

r_url = Request(href_pdf_url)
pdf_url = urlopen(r_url).read()
response = urlopen(r_url)

io_file = io.BytesIO(pdf_url)
io_file = io.BytesIO(response.read())
pdf_read = PdfReader(io_file)

pdf_title = pdf_read.metadata.title
Expand Down Expand Up @@ -99,8 +99,6 @@ 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)
Expand Down

0 comments on commit c23eb7c

Please sign in to comment.