Question: PLEASE Modify the file BELOW TO to populate the address field with faker address. please make the first address field Jason Brown and the address

PLEASE

Modify the file BELOW TO to populate the address field with faker address.

please make the first address field "Jason Brown" and the address should be, "9335 Gloria Street Suite 675 Mathisport, PR 63759".

import pytest from faker import Faker from application import init_app as create_app from application.database import db, U..>@pytest.fixture(scope="function") def create_300_users(app): faker = Faker('en') faker.seed(4321) user_list = [] number_of_users = 300 with app.app_context(): for i in range(number_of_users): user = User() user.name = faker.name() user.password = faker.password() user.email = faker.email() user.phone = faker.phone_number() user.address = faker.address() user_list.append(user) db.session.add_all(user_list) d..>@pytest.fixture(scope="function") def app(): app = create_app() app.config.update({ "TESTING": True, }) # other setup can go here with app.app_context(): db.session.remove() db.drop_all() db.create_all() yield app db.session.remove() # Uncomment To Reset Database After Test # db.drop_all() # clean up / reset resources h..>@pytest.fixture() def client(app): return a..>@pytest.fixture() def runner(app): return a..>@pytest.fixture(scope="function") def app_clean_db(): app = create_app() app.config.update({ "TESTING": True, }) # other setup can go here with app.app_context(): db.session.remove() db.drop_all() yield app db.session.remove()

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!