-
Notifications
You must be signed in to change notification settings - Fork 25
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
Added support for generating html chars #32
Conversation
[kedar@localhost fauxfactory]$ python
|
|
||
html_tag = random.choice(HTML_TAGS).lower() | ||
output_string = u'<%s>%s</%s>' % ( | ||
html_tag, cls.generate_string("alpha", length), html_tag) |
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.
Please use format
for string interpolation, not %
.
If the parameter |
ok, fixing as per comments. |
Great. Thank you. |
dc458e9
to
d33be10
Compare
@@ -15,7 +15,7 @@ | |||
|
|||
from collections import Iterable | |||
from fauxfactory.constants import ( | |||
LOREM_IPSUM_TEXT, | |||
LOREM_IPSUM_TEXT, HTML_TAGS, |
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.
Minor thing, but alphabetical ordering is preferred.
d33be10
to
ca59617
Compare
ca59617
to
3f9e56e
Compare
Added test for generate_html function
ACK.
|
ACK and thanks for the test too @kbidarkar :) |
Added support for generating html chars
No description provided.