Skip to content
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

Fix broken unit test for parser #41

Open
carbonphyber opened this issue Mar 8, 2021 · 0 comments
Open

Fix broken unit test for parser #41

carbonphyber opened this issue Mar 8, 2021 · 0 comments

Comments

@carbonphyber
Copy link
Contributor

Does anyone have insight into why this Parser unit test is erroring?

======================================================================
FAIL: test__get_or_create_result_jurisdiction (test_parser.TestParser)
----------------------------------------------------------------------
Traceback (most recent call last):
  File ".../clarify/tests/test_parser.py", line 72, in test__get_or_create_result_jurisdiction
    self.assertEqual(parser._result_jurisdictions, [ result_jurisdiction ])
AssertionError: Lists differ: [Resu[154 chars]rted=None, precincts_reporting_percent=None, level='precinct')] != [Resu[154 chars]rted=None, precincts_reporting_percent=None, level='county')]

First differing element 0:
Resul[152 chars]orted=None, precincts_reporting_percent=None, level='precinct')
Resul[152 chars]orted=None, precincts_reporting_percent=None, level='county')

Diff is 892 characters long. Set self.maxDiff to None to see it.

----------------------------------------------------------------------

I have looked into trying to fix it but can't figure out if the left side or right side of the assertion is undesirable.

emilymerwin added a commit to ajcnews/clarify that referenced this issue May 17, 2024
Except for the one that was already failing (see [openelections#41](openelections#41))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant