get_parent_path()
This commit extract a helper `get_parent_path()` that is unit tested and also uses this generated parent_path for the call to manage_devices_file to be consistent with the exiting behavior of only including the device that actually contains the VG.
This is similar to the other `inputs`, `sources` etc conftest.py modules and allows us to write unit test for the devices code.