opensearch-project / opensearch-py-ml

Apache License 2.0
32 stars 62 forks source link

[FEATURE] Update tests to use Pytest's `tmpdir` or `tmpfile` fixtures #352

Open rawwar opened 9 months ago

rawwar commented 9 months ago

Currently, when we run tests locally, it creates few temporary folders. We are manually creating them and deleting them. It would be cleaner if we can make use of pytest's fixtures to create temporary files/directories and clean them up after completion of tests. Will be easier and set a standard for all the future temporary data lifecycle

Reference documentation : https://docs.pytest.org/en/6.2.x/tmpdir.html

dblock commented 3 months ago

Catch All Triage - 1 2 3 4 5 thanks for opening this, maybe you want to contribute a fix to the build scripts?