This logic is unnecessary to expose to users. Further, some logic to simplify the test path was set up but not fully integrated throughout the test code
This fixture should be updated with the default path and the numerous global filepaths at the top of many test files should be updated. It should also be used to set the test path in the global pytest namespace (though this may not work directly -- untested):
Currently many test files have a number of global variables that point to different xtgeo-testdata files. These files get their root path from
https://github.com/equinor/xtgeo/blob/56d76c34c29f2892623c880c8bac42c4d82a6677/src/xtgeo/common/xtgeo_dialog.py#L251-L266
This logic is unnecessary to expose to users. Further, some logic to simplify the test path was set up but not fully integrated throughout the test code
https://github.com/equinor/xtgeo/blob/56d76c34c29f2892623c880c8bac42c4d82a6677/conftest.py#L75-L82
This fixture should be updated with the default path and the numerous global filepaths at the top of many test files should be updated. It should also be used to set the test path in the global pytest namespace (though this may not work directly -- untested):
It is common to see a pattern like this in test code:
Then, as a start, the test path imported from XTGeoDialog can be swapped with
pytest.xtg_testpath
(untested, may need adjusting)