-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Popup tests #254
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
Popup tests #254
Conversation
This PR is not ready. We need:
|
|
||
def test_popup_ascii(): | ||
popup = Popup('Some text.') | ||
_id = list(popup.html._children.items())[0][0] |
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.
@BibMartin do you have a better suggestion than this?
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.
I would have done
_id = list(popup.html._children.keys())[0]
but it's really equivalent.
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.
but it's really equivalent.
The result? Yes. But your way is more readable. Changing that...
@ocefpaf This list might help in building strong tests. |
Thanks! I will take a look. (I like the name 😉) |
5368adc
to
477884c
Compare
@BibMartin can you review and merge. I will add more tests later on. |
@@ -5,6 +5,9 @@ | |||
|
|||
Classes for drawing maps. | |||
""" | |||
|
|||
from __future__ import unicode_literals |
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.
@ocefpaf
Just for curiosity: what is it for ?
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.
So we can use "Ça c'est chouette"
instead of u"Ça c'est chouette"
. Embrace the future 😉
It's ok. Merging 🎉 |
Thanks! |
Complements #253 and closes #252.
NB the
test_popup_unicode
is a known failure.