Search code examples
pythonappiumpytest

How to disable Appium's log call/setup in pytest?


Im using Appium to write automation for an iOS app, whenever one of the tests fail, pytest also prints out stuff about Appium itself (Screenshot below), and I was wondering how to disable this.

Im using "pytest -v iOS_Sanity" to run my script, I tried adding the '-s' flag for "disable capturing" but it didnt make any difference.

Current output: output

What I wish is for the entire "Captured log call" and "Captured log setup" to not be there.


Solution

  • Found out the answer, the needed parameter is --no-print-logs