kiwicom / pytest-recording

A pytest plugin that allows recording network interactions via VCR.py
MIT License
425 stars 34 forks source link

[FEATURE] Support pytest config file options #80

Open dragonpaw opened 2 years ago

dragonpaw commented 2 years ago

Is your feature request related to a problem? Please describe. Support options in pytest config file

Describe the solution you'd like

[pytest]
block_network = True
ignore_localhost = True
allowed_hosts = [ "::1" ] # Ipv6 localhost isn't considered localhost.

Describe alternatives you've considered I know I can use addopts, but my addopts line is getting very, very long... ;)

Additional context Great plugin, love it!