Skip to content

Commit

Permalink
added function to clean up after tests
Browse files Browse the repository at this point in the history
  • Loading branch information
SamCox822 committed Feb 28, 2024
1 parent a8a29d7 commit ac0cdb5
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
from mdagent.utils.clear_mem import ClearMemory


def cleanup_tests():
clear_mem = ClearMemory()
clear_mem.clear_ckpts_root()


def pytest_sessionfinish(session, exitstatus):
cleanup_tests()

0 comments on commit ac0cdb5

Please sign in to comment.