Check out example codes for "print value in pytest". It will help you in understanding the concepts better.

Code Example 1

# print to console in pytest (use -s)
pytest path/to/tests -s

Learn ReactJs, React Native from akashmittal.com