forked from mitodl/mitx-grading-library
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Hand encoded unicode literals replaces scriptwide utf-8 encoding.
There is a small issue outstanding with the new test. I'm not sure how to fix it. There is a test function found in test_expressions.py called: test_negation_with_emdash() It loops through badformulas testing to make sure badly formatted formulas are unable to parse. That bit works, that is if the test fails then exceptions are raised, however, pytest has a feature that should be used, but is not in this case. A particular function: pytest.raises can take a keyword argument called "match" that ensures error messages raised along with the parse error are formatted correctly. There is or was a bug that seems to mirror the issue here: pytest-dev/pytest#5478
- Loading branch information
Showing
2 changed files
with
28 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters