alchemistry / alchemlyb

the simple alchemistry library
https://alchemlyb.readthedocs.io
BSD 3-Clause "New" or "Revised" License
195 stars 49 forks source link

Run the TestInit.test_nofilematch test in a tempdir #345

Closed xiki-tempula closed 6 months ago

xiki-tempula commented 9 months ago

The current test is

    def test_nofilematch(self):
        with pytest.raises(ValueError, match="No file has been matched to"):
>           ABFE(
                dir="./",
                prefix="dhdl",
                suffix="xvg",
                T=310,
            )

Which is fine it's own sense but will try to search through all the subfolders in dir="./". So if you run it in your root path '~', it will try to access all the files which might annoy some security people. Once I had time should make a temp dir for this test.