Open mohanqxf2 opened 1 month ago
@mohanqxf2
@mohanqxf2 This test fails in CI. Add a pytest marker and don't run it as part of CI process. If we plan to run this as part of CI we need a way to trigger an email, use our test account, use a secret key to login to test account and then check emails)
Updated with pytest.mark.skip to skip the test_gmail_utils.py
@pytest.mark.skip(reason="currently no support on CI to test this")
python -m pytest test_gmail_utils.py ============================= test session starts ============================= platform win32 -- Python 3.11.2, pytest-8.1.1, pluggy-1.4.0 -- C:\Users\mohan\code\qxf2\venv\Scripts\python.exe metadata: {'Python': '3.11.2', 'Platform': 'Windows-10-10.0.22631-SP0', 'Packages': {'pytest': '8.1.1', 'pluggy': '1.4.0'}, 'Plugins': {'anyio': '3.6.2', 'html': '4.1.1', 'metadata': '3.1.1', 'reportportal': '5.4.0', 'rerunfailures': '14.0', 'snapshot': '0.9.0', 'xdist': '3.5.0'}, 'JAVA_HOME': 'C:\Program Files\Java\jdk-22'} rootdir: C:\Users\mohan\code\qxf2\qxf2-page-object-model configfile: pytest.ini plugins: anyio-3.6.2, html-4.1.1, metadata-3.1.1, reportportal-5.4.0, rerunfailures-14.0, snapshot-0.9.0, xdist-3.5.0 collecting ... collected 1 item
test_gmail_utils.py::test_gmail_util SKIPPED (currently no support o...)Error processing consolidated log file: [Errno 2] No such file or directory: 'log\consolidated_log.txt'
Fixed all the gmail integration issues and updated the Gmail utils methods and class and created a new tests script to run against some of the gmail utilities.
Prerequisites:
To run: