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

tests: unicode all the way #50

Merged
merged 1 commit into from Nov 25, 2015
Merged

tests: unicode all the way #50

merged 1 commit into from Nov 25, 2015

Conversation

greut
Copy link
Member

@greut greut commented Nov 25, 2015

Using utf-8 strings in the tests. It's easier to check that the output correspond when you don't have to match a character with it's html entity.

Remove some non used stuff and flake warnings.

And break the tests ;-)

@jirikuncar jirikuncar added this to the 0.5.0 milestone Nov 25, 2015
@greut
Copy link
Member Author

greut commented Nov 25, 2015

@jirikuncar I've removed the culprit. Let me know what needs to be changed before you can consider merging it. Thanks!

@jirikuncar jirikuncar modified the milestones: v0.4.1, 0.5.0 Nov 25, 2015
@jirikuncar
Copy link
Member

@greut can you check situation in which a field contains any html entity like >?

s/test:/tests:/ 😉

@jirikuncar jirikuncar changed the title test: unicode all the way tests: unicode all the way Nov 25, 2015
@greut
Copy link
Member Author

greut commented Nov 25, 2015

Added in the test suite: from __future__ import unicode_literals

@jirikuncar
Copy link
Member

@greut from __future__ import unicode_literals is not good idea. Can you use u explicitly instead?

@@ -9,14 +9,13 @@

"""Test suite for DoJSON."""

from __future__ import unicode_literals
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please use u instead

@greut
Copy link
Member Author

greut commented Nov 25, 2015

@jirikuncar m'kay.

* BETTER Adds two records to be tested.

* BETTER Reorders some of the assertion: `expected == actual`.

Signed-off-by: Yoan Blanc <yoan@dosimple.ch>
@jirikuncar jirikuncar merged commit 62baa33 into inveniosoftware:master Nov 25, 2015
@greut greut deleted the unicode-tests branch November 25, 2015 17:16
@jirikuncar jirikuncar modified the milestones: v0.4.1, 1.0.0 Dec 17, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants