How do I set timeout in pytest?

How do I set timeout in pytest ?

Hey Mark!

You can set a global timeout in the pytest configuration file using the timeout option as shown below:

[pytest]
timeout = 300