How to use Faker from Factory_boy
<p><code>Factory_boy</code> uses <code>fake-factory (Faker)</code> to generate random values, I would like to generate some random values in my Django tests using Faker directly.</p>
<p>Factory_boy docs suggests using <code>factory.Faker</code> and its provider as :</p>
<pre><code>class RandomUserFactory(factory.Factory):
    class Meta:
        model = models.User

    first_name = factory.Faker('first_name')
</code></pre>
<p>But this isn't generating any name:</p>
<pre><code>&gt;&gt;&gt; import factory
&gt;&gt;&gt; factory.Faker('name')
&lt;factory.faker.Faker object at 0x7f1807bf5278&gt;
&gt;&gt;&gt; type(factory.Faker('name'))
&lt;class 'factory.faker.Faker'&gt;
</code></pre>
<p>From <code>factory_boy</code> <code>faker.py</code> class <code>factory.Faker('ean', length=10)</code> calls <code>faker.Faker.ean(length=10)</code> but <code>Faker</code> docs says it should show a name:</p>
<pre><code>from faker import Faker
fake = Faker()
fake.name()
# 'Lucy Cechtelar'
</code></pre>
<p>Is there any other way to use <code>Faker</code> instead of setting an instance directly from <code>Faker</code>?</p>
<pre><code>from faker import Factory
fake = Factory.create()
fake.name()
</code></pre>