From 846b44d3923acb1dd47503918c8771d2f0e96d70 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Armando=20Ba=C3=B1uelos?= <32311654+abanuelo@users.noreply.github.com> Date: Fri, 5 Jul 2024 13:33:05 -0700 Subject: [PATCH] chore: gif cleanup for pytests (#285) * fix: Adding modifications to codecov.yml * chore: add cleanup to simulator.gif for pytests --------- Co-authored-by: Armando Banuelos Co-authored-by: Armando Banuelos --- .gitignore | 2 ++ tests/simulators/newtonian/test_newtonian.py | 1 + 2 files changed, 3 insertions(+) diff --git a/.gitignore b/.gitignore index 31bd1e964..d2bf7f6f9 100644 --- a/.gitignore +++ b/.gitignore @@ -139,3 +139,5 @@ dmypy.json # generated parser src/scenic/syntax/parser.py + +simulation.gif \ No newline at end of file diff --git a/tests/simulators/newtonian/test_newtonian.py b/tests/simulators/newtonian/test_newtonian.py index a1ac5e4ad..b714479e2 100644 --- a/tests/simulators/newtonian/test_newtonian.py +++ b/tests/simulators/newtonian/test_newtonian.py @@ -48,6 +48,7 @@ def test_gif_creation(loadLocalScenario): simulation = simulator.simulate(scene, maxSteps=100) gif_path = Path("") / "simulation.gif" assert os.path.exists(gif_path) + os.remove(gif_path) @pickle_test