Answered step by step
Verified Expert Solution
Question
1 Approved Answer
CAN YOU TWLL ME HOW TO FIX THESE CODES AND SHOW ME HOW THE LINE LOOK 2. E script.py.mako . tests 2 from faker
E script.py.mako . tests 2 from faker import Faker _init_.py 3 from flask. testing import FlaskClient ~ conftest.py 4 helpers.py 5 Aimport application . database test_about_page.py 6 test_index_page.py 7 test_login_bad_password.py @test_login_dashboard.py 2 github-classroom[bot] test_login_success.py 8 @pytest . fixture (scope=' session' , autouse=True) test_login_user_not_found.py 19 def faker_session_locale() : @test_logout.py 10 return ['en' ] test_profile_controller.py 11 test_profile_model.py 12 @test_registration_duplicate_fai github-classroom[bot] test_registration_success.py 13 @pytest . fixture (scope=' session', autouse=True) test_sample_authenticated_m 14 def faker_seed () : test_sample_login_redirect.py 15 return 4321 test_sample_model.py 16 test_sample_route.py @test_sample_unauthenticated_ 17 I venv github-classroom[bot] * .dockerignore 18 @pytest . fixture (scope="function") .gitignore 19 def create_5_users (app, faker) : ~ config.py un: Rerun Failed Tests X O v . Test framework quit unexpectedly ImportError while loading conftest ' /Users/warrenmitchell/PycharmProjects/pr conftest . py : 5: in import application . database /application/ init py:2: in project-2-fall-2022-wcm5544 ) application ) _init_.py Python tests in test_sample_unauthenticated_menu.py Git: Project @ 1 * * - n inauthenticated_menu.py X conftest.py application/_init_.py X authentication/_init_.py X test_registration_duplicate_fail.py X test_index_page.py X helpers.py Project script.py.mako Main Flask Application Initialization A7 X1 ^ tests _init_.py from flask import Flask conftest.py 5 from flask_bootstrap import Bootstrap5 Pull Requests helpers.py 6 test_about_page.py from flask_migrate import Migrate test_index_page.py from flask_wtf import CSRFProtect test_login_bad_password.py 8 test_login_dashboard.py 9 from . import database test_login_success.py 10 import config test_login_user_not_found.py 11 from application . bp . homepage import bp_homepage test_logout.py 12 from application . bp . authentication import authentication test_profile_controller.py 13 from application . bp. sample_calc import sample_size test_profile_model.py 14 from flask_login import LoginManager test_registration_duplicate_fai 15 test_registration_success.py test_sample_authenticated_m 16 migrate = Migrate() test_sample_login_redirect.py 17 csrf = CSRFProtect() test_sample_model.py 18 Login_manager = LoginManager () test_sample_route.py 19 test_sample_unauthenticated_ 20 venv github-classroom[bot] * .dockerignore 21 [def init_app() : To.gitignore 22 " " Thitialize the core annlication unu config.py Run: Rerun Failed Tests X 9 v . Test framework quit unexpectedly ImportError while loading conftest '/Users/warrenmitchell/PycharmProjects/project-2-fall-2022-wcm5544/tests/conftest. py' . conftest . py : 5: in import application . database Bookmarks /application/ init .py:2: in from . import database ./application/database/ init .py:14: in from application . bp . authentication import LoginForm Structure ./application/bp/authentication/ init .py:6: in from . . . database import login_user, db, Group F ImportError: cannot import name 'db' from partially initialized module 'application. database' (most likely due to a circular impor Git Run Debug Python Packages TODO Python Console Problems Terminal VY Endpoints Services Tests passed: 0 (2 minutes ago) 9:1 LF UTF-8 4 spaces Python 3.10 (project-2-fall-2022-wcm5544) | project2-start
E script.py.mako tests _init__.py conftest.py helpers.py test_about_page.py test_index_page.py Cun: test_login_bad_password.py test_login_dashboard.py test_login_success.py test_login_user_not_found.py test_logout.py test_profile_controller.py test_profile_model.py venv .dockerignore .gitignore config.py F test_registration_duplicate_fai test_registration_success.py 13 test_sample_authenticated_m 14 test_sample_login_redirect.py 15 test_sample_model.py 16 test_sample_route.py 17 test_sample_unauthenticated_ Rerun Failed Tests x 2 3 4 5 6 7 8 9 10 11 12 18 19 12 13 31 Test framework quit unexpectedly from faker import Faker from flask.testing import FlaskClient Himport application.database github-classroom [bot] @pytest. fixture (scope='session', autouse=True) def faker_session_locale (): return ['en'] github-classroom [bot] @pytest.fixture(scope='session', autouse=True) def faker_seed (): A return 4321 github-classroom [bot] * @pytest.fixture(scope="function") def create_5_users(app, faker): ImportError while loading conftest /Users/warrenmitchell/PycharmProjects/pro conftest.py:5: in import application.database ../application/ _init_ py:9: in
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started