Skip to content

armgit / manim

Public Imported from GitHub
0

A community-maintained Python framework for creating mathematical animations.

Rename `reset_config` to `reset_cfg_file` for clarity.

Aathishdc948279281f
diff --git a/tests/conftest.py b/tests/conftest.py
index 6d309522b..19f2c9640 100644
--- a/tests/conftest.py
+++ b/tests/conftest.py
@@ -32,7 +32,7 @@ def python_version():
return "python3" if sys.platform == "darwin" else "python"
@pytest.fixture
-def reset_config():
+def reset_cfg_file():
cfgfilepath = os.path.join(os.path.dirname(__file__),"test_cli", "manim.cfg")
with open(cfgfilepath) as cfgfile:
original = cfgfile.read()
diff --git a/tests/test_cli/test_cfg_subcmd.py b/tests/test_cli/test_cfg_subcmd.py
index 68a523265..21dfcd51d 100644
--- a/tests/test_cli/test_cfg_subcmd.py
+++ b/tests/test_cli/test_cfg_subcmd.py
@@ -28,7 +28,7 @@ def test_cfg_export(python_version):
assert "sound = True" in writtencfg.read(), err
shutil.rmtree(os.path.join(this_folder,"temp"))
[email protected]("reset_config")
[email protected]("reset_cfg_file")
def test_cfg_write(python_version):
"""Simulate using the command `manim cfg write`"""
cfgfilepath = os.path.join(this_folder, "manim.cfg")