Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

pytest: Results Summary not written to log file

Options
  • 20-09-2021 10:47am
    #1
    Registered Users Posts: 5,553 ✭✭✭



    python3 -m pytest $test_case_path --log-file $testout_file --log-level 10 --log-date-format "%Y-%m-%d %H:%M:%S" --log-format "%(asctime)s %(levelname)s %(message)s"
    

    This will output the below to STDOUT after the test runs. But the summary does not go into the output file, not sure why?


    =================================================================== warnings summary ===================================================================

    CE/regression/IAM/User/auto_create_user.py::CreateUser::test_create_user

      /usr/local/lib/python3.6/site-packages/urllib3/connectionpool.py:1004: InsecureRequestWarning: Unverified HTTPS request is being made to host 'broom11vip.us.oracle.com'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings

      InsecureRequestWarning,



Advertisement