codeforpdx / recordexpungPDX

A project to automate the expungement of qualifying criminal records in Oregon. This project is done in conjunction with Qiu-Qiu Law.
https://recordsponge.com
MIT License
52 stars 88 forks source link

Update pdf tests #1732

Closed emko-274 closed 4 months ago

emko-274 commented 4 months ago

Updated tests to reflect new changes. Temporarily commenting out markdown rendering tests

emko-274 commented 4 months ago

I'm stuck with the markdown tests -- how do I diff the expected and actual summary pdf files?

wittejm commented 4 months ago

If you run docker-compose exec expungeservice pipenv run pytest ./tests/pdf/test_markdown_renderer.py -vv

it gives the full printout of the text diff for just the markdown test (-vv option is verbose). It looks like it's just a couple of spacing issues and other minor typos.

emko-274 commented 4 months ago

Okay, thank you. I've added the tests back and removed the comments.

wittejm commented 4 months ago

Looks like the test is still commented out though?

emko-274 commented 4 months ago

Sorry, I think saved the changes to the wrong branch. I'll make a new pull request