Both the TestCase and TestSuite models have a `settings` property. This could contain a serialized form of the pytest config object. https://github.com/pytest-dev/pytest-nunit/blob/master/pytest_nunit/nunit.py#L154