Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

pytest: Results Summary not written to log file

  • 20-09-2021 10:47AM
    #1
    Registered Users, Registered Users 2 Posts: 5,762 ✭✭✭



    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