New paste Repaste Download
============================= test session starts ==============================
platform linux -- Python 3.10.12, pytest-8.3.5, pluggy-1.6.0 -- /home/ubuntu/automation/playwright-automation/.venv/bin/python
cachedir: .pytest_cache
metadata: {'Python': '3.10.12', 'Platform': 'Linux-5.15.0-141-generic-x86_64-with-glibc2.35', 'Packages': {'pytest': '8.3.5', 'pluggy': '1.6.0'}, 'Plugins': {'html': '4.1.1', 'jira-xray': '0.9.2', 'metadata': '3.1.1', 'env': '1.1.5', 'repeat': '0.9.4', 'dotenv': '0.5.2', 'xdist': '3.7.0', 'timeout': '2.4.0', 'order': '1.3.0'}}
rootdir: /home/ubuntu/automation/playwright-automation
configfile: pytest.ini
plugins: html-4.1.1, jira-xray-0.9.2, metadata-3.1.1, env-1.1.5, repeat-0.9.4, dotenv-0.5.2, xdist-3.7.0, timeout-2.4.0, order-1.3.0
collecting ... collected 0 items / 1 error
==================================== ERRORS ====================================
________________________ ERROR collecting web_bmc/tests ________________________
/usr/lib/python3.10/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1050: in _gcd_import
    ???
<frozen importlib._bootstrap>:1027: in _find_and_load
    ???
<frozen importlib._bootstrap>:1006: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:688: in _load_unlocked
    ???
.venv/lib/python3.10/site-packages/_pytest/assertion/rewrite.py:185: in exec_module
    exec(co, module.__dict__)
web_bmc/tests/conftest.py:5: in <module>
    from web_bmc.pages.login_page import LoginPage
web_bmc/pages/login_page.py:2: in <module>
    from .base_bmc_page import BasePage
web_bmc/pages/base_bmc_page.py:6: in <module>
    from web_bmc.page_components.component_factory import ComponentFactory
web_bmc/page_components/component_factory.py:4: in <module>
    from web_bmc.page_components.top_menu_component import TopMenuComponent
web_bmc/page_components/top_menu_component.py:5: in <module>
    from web_bmc.pages.overview_page import OverviewPage
web_bmc/pages/overview_page.py:1: in <module>
    from .base_bmc_page import BaseBMCPage
E   ImportError: cannot import name 'BaseBMCPage' from partially initialized module 'web_bmc.pages.base_bmc_page' (most likely due to a circular import) (/home/ubuntu/automation/playwright-automation/web_bmc/pages/base_bmc_page.py)
- generated xml file: /home/ubuntu/automation/playwright-automation/logs/report.xml -
- Generated html report: file:///home/ubuntu/automation/playwright-automation/logs/report.html -
=========================== short test summary info ============================
[31mERROR [0m web_bmc/tests - ImportError: cannot import name 'BaseBMCPage' from partially initialized mo...
!!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!!
=====================  [33mno tests collected [0m,  [31m1 error [0m [31m in 2.81s [0m [31m =====================
Filename: None. Size: 3kb. View raw, , hex, or download this file.

This paste expires on 2025-06-12 11:19:31.060945. Pasted through deprecated-web.