On Sun, 9 Dec 2018 at 16:31, Bruno Oliveira <nicodde...@gmail.com> wrote: > > Hi Oscar,
Hi Bruno, > On Sun, Dec 9, 2018 at 12:30 PM Oscar Benjamin <oscar.j.benja...@gmail.com> > wrote: >> >> Is there any way to set those doctest option flags in conftest.py >> rather than pytest.ini? > > Currently those options are only possible to be set in pytest.ini, I'm afraid. Okay, thanks for letting me know. > Any reason why is that a problem though? It's not a huge problem. If it were possible to set them in conftest.py I'd rather do that because the pytest.ini doesn't exist yet and I'd like to keep everything in one file if possible. I spent a little time trying to work out if was possible: I just imagined there would be a generic way to set ini options from the conftest.py file. It's not needed in this case but the advantage of being able to set those things in conftest.py could be if you want to make them conditional on something. Thanks, Oscar _______________________________________________ pytest-dev mailing list pytest-dev@python.org https://mail.python.org/mailman/listinfo/pytest-dev