from zds.member.factories import ProfileFactory profile = ProfileFactory.create() print(profile.first_name, profile.last_name, profile.email)
from zds.member.factories import ProfileFactory profile = ProfileFactory.create(first_name='John', last_name='Doe', email='[email protected]') print(profile.first_name, profile.last_name, profile.email)This will create a profile with the specified attributes and print them out. In both examples, we are using the `create()` method of `ProfileFactory` to generate a profile object. The first example uses the default attributes while the second example specifies custom attributes.