v2.0.1
What's new? Basically:
- If your code still uses the older code and imports the
FauxFactory
class or tries to use one of its functions, a deprecation message is now displayed:
In [1]: from fauxfactory import FauxFactory
fauxfactory/__init__.py:721: Warning: The FauxFactory class is deprecated. Please use functions from the fauxfactory module instead.
category=Warning)
In [2]: FauxFactory.generate_utf8()
fauxfactory/__init__.py:697: Warning: Function generate_utf8 is now deprecated! Please update your your code to use the gen_utf8 function instead.
warnings.warn(warn_message.format(name, new_name), category=Warning)
Out[2]: u'\u3ca8\ucc98\uaf06\uef9c\uc7e7\ub10f\u8554\u8ec0\uf64c\ub6a1'
- The
gen_string
function now has a default for thelength
argument, which means that you can callgen_string('utf8')
without having to pass a default value.
In [1]: from fauxfactory import gen_string
In [2]: gen_string('utf8')
Out[2]: u'\u0d53\ufebf\u336b\uffb1\u3899\u3c4d\u1d2b\ub9f9\u0f36\uef60'
... and that's all for now :)