About the pytest resources, why don't you use this: pytest-resource-path ยท PyPI
pip install pytest-resource-path
Then, you'll be able to code in pytest, like:
def test_method(resource_path_root):
text_test_resource = (resource_path_root / 'config1.csv').read_text()