-
Notifications
You must be signed in to change notification settings - Fork 90
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update pdf tests #1732
Update pdf tests #1732
Conversation
…t_render_with_custom_header tests
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good so far! Do you intend to add the markdown test back in for this PR?
|
||
county_fines = [x for x in record["summary"]["county_fines"]] | ||
|
||
#fines_total = record["summary"]["total_fines_due"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this still needed? Looks like it can be removed
@@ -13,11 +13,17 @@ def to_markdown(record: Dict, header: Optional[str] = None, aliases: List[Dict] | |||
ineligible_case_charges = [ | |||
x for x in record["summary"]["charges_grouped_by_eligibility_and_case"] if x[0] == "Ineligible" | |||
] | |||
|
|||
#print(ineligible_case_charges) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's delete this to keep things tidier.
I'm stuck with the markdown tests -- how do I diff the expected and actual summary pdf files? |
If you run 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. |
Okay, thank you. I've added the tests back and removed the comments. |
Looks like the test is still commented out though? |
Sorry, I think saved the changes to the wrong branch. I'll make a new pull request |
Updated tests to reflect new changes. Temporarily commenting out markdown rendering tests