petermr / amilib

Python library of `ami` software especially NLP, HTML, downloading and related convenience utilities
Apache License 2.0
0 stars 0 forks source link

[AssertionError] Branch `pmr_dict` fail #22

Open nitikabaghel opened 1 month ago

nitikabaghel commented 1 month ago

System: Windows 11, Python 3.12.3

______________________________________________________________ PDFPlumberTest.test_misc_pdf _______________________________________________________________

self = <test.test_pdf.PDFPlumberTest testMethod=test_misc_pdf>

    def test_misc_pdf(self):
        """Parses an arbitrary PDF with PDFPlumber and outputs HTML to a given directory"""
        input_pdf = Path("/Users/pm286/workspace/misc/380981eng.pdf")
>       assert Path(input_pdf).exists(), f"{input_pdf} should exist"
E       AssertionError: \Users\pm286\workspace\misc\380981eng.pdf should exist
E       assert False
E        +  where False = <bound method Path.exists of WindowsPath('/Users/pm286/workspace/misc/380981eng.pdf')>()
E        +    where <bound method Path.exists of WindowsPath('/Users/pm286/workspace/misc/380981eng.pdf')> = WindowsPath('/Users/pm286/workspace/misc/380981eng.pdf').exists
E        +      where WindowsPath('/Users/pm286/workspace/misc/380981eng.pdf') = Path(WindowsPath('/Users/pm286/workspace/misc/380981eng.pdf'))

test\test_pdf.py:202: AssertionError

================================================================= short test summary info =================================================================

FAILED test/test_pdf.py::PDFPlumberTest::test_misc_pdf - AssertionError: \Users\pm286\workspace\misc\380981eng.pdf should exist

============================================ 3 failed, 221 passed, 83 skipped, 4 warnings in 182.20s (0:03:02) ============================================
petermr commented 1 month ago

Hmmm missing file - can't find on my machine. Mystery.

Bad test we need to replace