Skip to content

armgit / manim

Public Imported from GitHub
0

A community-maintained Python framework for creating mathematical animations.

Refactored tests and added new tests tools for videos-tests. (#335)

Hugues Devimeuxa623a9e4c39b
diff --git a/docs/source/conf.py b/docs/source/conf.py
index 6939a846a..c0fd8408b 100644
--- a/docs/source/conf.py
+++ b/docs/source/conf.py
@@ -17,9 +17,9 @@
# -- Project information -----------------------------------------------------
-project = 'manim'
-copyright = '2020, The Manim Community Dev Team'
-author = 'The Manim Community Dev Team'
+project = "manim"
+copyright = "2020, The Manim Community Dev Team"
+author = "The Manim Community Dev Team"
# -- General configuration ---------------------------------------------------
@@ -28,18 +28,19 @@ author = 'The Manim Community Dev Team'
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
# ones.
extensions = [
- 'sphinx.ext.autodoc',
- 'recommonmark',
- 'sphinx.ext.napoleon',
- 'sphinx.ext.autosummary',
- 'sphinx.ext.doctest',
+ "sphinx.ext.autodoc",
+ "sphinx_rtd_theme",
+ "recommonmark",
+ "sphinx.ext.napoleon",
+ "sphinx.ext.autosummary",
+ "sphinx.ext.doctest",
]
# Automatically generate stub pages when using the .. autosummary directive
autosummary_generate = True
# Add any paths that contain templates here, relative to this directory.
-templates_path = ['_templates']
+templates_path = ["_templates"]
# List of patterns, relative to source directory, that match files and
# directories to ignore when looking for source files.
@@ -55,12 +56,12 @@ exclude_patterns = []
import guzzle_sphinx_theme
html_theme_path = guzzle_sphinx_theme.html_theme_path()
-html_theme = 'guzzle_sphinx_theme'
+html_theme = "guzzle_sphinx_theme"
# There's a standing issue with Sphinx's new-style sidebars. This is a
# workaround. Taken from
# https://github.com/guzzle/guzzle_sphinx_theme/issues/33#issuecomment-637081826
-html_sidebars = {'**': ['logo-text.html', 'globaltoc.html', 'searchbox.html']}
+html_sidebars = {"**": ["logo-text.html", "globaltoc.html", "searchbox.html"]}
# Register the theme as an extension to generate a sitemap.xml
extensions.append("guzzle_sphinx_theme")
diff --git a/pytest.ini b/pytest.ini
new file mode 100644
index 000000000..31a14b6a7
--- /dev/null
+++ b/pytest.ini
@@ -0,0 +1,4 @@
+
+[pytest]
+markers =
+ slow: Mark the test as slow. Can be skipped with --skip_slow
\ No newline at end of file
diff --git a/tests/__init__.py b/tests/__init__.py
new file mode 100644
index 000000000..e69de29bb
diff --git a/tests/conftest.py b/tests/conftest.py
index 3236483e5..32deec198 100644
--- a/tests/conftest.py
+++ b/tests/conftest.py
@@ -4,15 +4,20 @@ import numpy as np
import os
import sys
import logging
-from shutil import rmtree
def pytest_addoption(parser):
parser.addoption(
- "--skip_end_to_end",
+ "--skip_slow",
action="store_true",
default=False,
- help="Will skip all the end-to-end tests. Useful when ffmpeg is not installed, e.g. on Windows jobs.",
+ help="Will skip all the slow marked tests. Slow tests are arbitrarly marked as such.",
+ )
+ parser.addoption(
+ "--show_diff",
+ action="store_true",
+ default=False,
+ help="Will show a visual comparison if a graphical unit test fails.",
)
@@ -21,18 +26,18 @@ def pytest_configure(config):
def pytest_collection_modifyitems(config, items):
- if not config.getoption("--skip_end_to_end"):
+ if not config.getoption("--skip_slow"):
return
else:
- skip_end_to_end = pytest.mark.skip(
- reason="End to end test skipped due to --skip_end_to_end flag"
+ slow_skip = pytest.mark.skip(
+ reason="Slow test skipped due to --disable_slow flag."
)
for item in items:
- if "skip_end_to_end" in item.keywords:
- item.add_marker(skip_end_to_end)
+ if "slow" in item.keywords:
+ item.add_marker(slow_skip)
[email protected](scope="module")
[email protected](scope="session")
def python_version():
return "python3" if sys.platform == "darwin" else "python"
@@ -45,10 +50,3 @@ def reset_cfg_file():
yield
with open(cfgfilepath, "w") as cfgfile:
cfgfile.write(original)
-
-
-def clean_tests_cache():
- yield
- path_output = os.path.join("tests", "tests_cache", "media_temp")
- rmtree(path_output)
diff --git a/tests/tests_data/creation/DrawBorderThenFillTest.npy b/tests/control_data/graphical_units_data/creation/DrawBorderThenFillTest.npy
similarity index 100%
rename from tests/tests_data/creation/DrawBorderThenFillTest.npy
rename to tests/control_data/graphical_units_data/creation/DrawBorderThenFillTest.npy
diff --git a/tests/tests_data/creation/FadeInFromDownTest.npy b/tests/control_data/graphical_units_data/creation/FadeInFromDownTest.npy
similarity index 100%
rename from tests/tests_data/creation/FadeInFromDownTest.npy
rename to tests/control_data/graphical_units_data/creation/FadeInFromDownTest.npy
diff --git a/tests/tests_data/creation/FadeInFromLargeTest.npy b/tests/control_data/graphical_units_data/creation/FadeInFromLargeTest.npy
similarity index 100%
rename from tests/tests_data/creation/FadeInFromLargeTest.npy
rename to tests/control_data/graphical_units_data/creation/FadeInFromLargeTest.npy
diff --git a/tests/tests_data/creation/FadeInFromTest.npy b/tests/control_data/graphical_units_data/creation/FadeInFromTest.npy
similarity index 100%
rename from tests/tests_data/creation/FadeInFromTest.npy
rename to tests/control_data/graphical_units_data/creation/FadeInFromTest.npy
diff --git a/tests/tests_data/creation/FadeInTest.npy b/tests/control_data/graphical_units_data/creation/FadeInTest.npy
similarity index 100%
rename from tests/tests_data/creation/FadeInTest.npy
rename to tests/control_data/graphical_units_data/creation/FadeInTest.npy
diff --git a/tests/tests_data/creation/FadeOutAndShiftTest.npy b/tests/control_data/graphical_units_data/creation/FadeOutAndShiftTest.npy
similarity index 100%
rename from tests/tests_data/creation/FadeOutAndShiftTest.npy
rename to tests/control_data/graphical_units_data/creation/FadeOutAndShiftTest.npy
diff --git a/tests/tests_data/creation/FadeOutTest.npy b/tests/control_data/graphical_units_data/creation/FadeOutTest.npy
similarity index 100%
rename from tests/tests_data/creation/FadeOutTest.npy
rename to tests/control_data/graphical_units_data/creation/FadeOutTest.npy
diff --git a/tests/tests_data/creation/GrowFromCenterTest.npy b/tests/control_data/graphical_units_data/creation/GrowFromCenterTest.npy
similarity index 100%
rename from tests/tests_data/creation/GrowFromCenterTest.npy
rename to tests/control_data/graphical_units_data/creation/GrowFromCenterTest.npy
diff --git a/tests/tests_data/creation/GrowFromEdgeTest.npy b/tests/control_data/graphical_units_data/creation/GrowFromEdgeTest.npy
similarity index 100%
rename from tests/tests_data/creation/GrowFromEdgeTest.npy
rename to tests/control_data/graphical_units_data/creation/GrowFromEdgeTest.npy
diff --git a/tests/tests_data/creation/GrowFromPointTest.npy b/tests/control_data/graphical_units_data/creation/GrowFromPointTest.npy
similarity index 100%
rename from tests/tests_data/creation/GrowFromPointTest.npy
rename to tests/control_data/graphical_units_data/creation/GrowFromPointTest.npy
diff --git a/tests/tests_data/creation/ShowCreationTest.npy b/tests/control_data/graphical_units_data/creation/ShowCreationTest.npy
similarity index 100%
rename from tests/tests_data/creation/ShowCreationTest.npy
rename to tests/control_data/graphical_units_data/creation/ShowCreationTest.npy
diff --git a/tests/tests_data/creation/ShrinkToCenterTest.npy b/tests/control_data/graphical_units_data/creation/ShrinkToCenterTest.npy
similarity index 100%
rename from tests/tests_data/creation/ShrinkToCenterTest.npy
rename to tests/control_data/graphical_units_data/creation/ShrinkToCenterTest.npy
diff --git a/tests/tests_data/creation/SpinInFromNothingTest.npy b/tests/control_data/graphical_units_data/creation/SpinInFromNothingTest.npy
similarity index 100%
rename from tests/tests_data/creation/SpinInFromNothingTest.npy
rename to tests/control_data/graphical_units_data/creation/SpinInFromNothingTest.npy
diff --git a/tests/tests_data/creation/UncreateTest.npy b/tests/control_data/graphical_units_data/creation/UncreateTest.npy
similarity index 100%
rename from tests/tests_data/creation/UncreateTest.npy
rename to tests/control_data/graphical_units_data/creation/UncreateTest.npy
diff --git a/tests/tests_data/creation/WriteTest.npy b/tests/control_data/graphical_units_data/creation/WriteTest.npy
similarity index 100%
rename from tests/tests_data/creation/WriteTest.npy
rename to tests/control_data/graphical_units_data/creation/WriteTest.npy
diff --git a/tests/tests_data/deepcopy/Tex/b26c2d37c7d91fb6.aux b/tests/control_data/graphical_units_data/deepcopy/Tex/b26c2d37c7d91fb6.aux
similarity index 100%
rename from tests/tests_data/deepcopy/Tex/b26c2d37c7d91fb6.aux
rename to tests/control_data/graphical_units_data/deepcopy/Tex/b26c2d37c7d91fb6.aux
diff --git a/tests/tests_data/deepcopy/Tex/b26c2d37c7d91fb6.dvi b/tests/control_data/graphical_units_data/deepcopy/Tex/b26c2d37c7d91fb6.dvi
similarity index 100%
rename from tests/tests_data/deepcopy/Tex/b26c2d37c7d91fb6.dvi
rename to tests/control_data/graphical_units_data/deepcopy/Tex/b26c2d37c7d91fb6.dvi
diff --git a/tests/tests_data/deepcopy/Tex/b26c2d37c7d91fb6.svg b/tests/control_data/graphical_units_data/deepcopy/Tex/b26c2d37c7d91fb6.svg
similarity index 100%
rename from tests/tests_data/deepcopy/Tex/b26c2d37c7d91fb6.svg
rename to tests/control_data/graphical_units_data/deepcopy/Tex/b26c2d37c7d91fb6.svg
diff --git a/tests/tests_data/deepcopy/Tex/b26c2d37c7d91fb6.tex b/tests/control_data/graphical_units_data/deepcopy/Tex/b26c2d37c7d91fb6.tex
similarity index 100%
rename from tests/tests_data/deepcopy/Tex/b26c2d37c7d91fb6.tex
rename to tests/control_data/graphical_units_data/deepcopy/Tex/b26c2d37c7d91fb6.tex
diff --git a/tests/tests_data/deepcopy/Tex/bb964ccc0ded6db8.aux b/tests/control_data/graphical_units_data/deepcopy/Tex/bb964ccc0ded6db8.aux
similarity index 100%
rename from tests/tests_data/deepcopy/Tex/bb964ccc0ded6db8.aux
rename to tests/control_data/graphical_units_data/deepcopy/Tex/bb964ccc0ded6db8.aux
diff --git a/tests/tests_data/deepcopy/Tex/bb964ccc0ded6db8.dvi b/tests/control_data/graphical_units_data/deepcopy/Tex/bb964ccc0ded6db8.dvi
similarity index 100%
rename from tests/tests_data/deepcopy/Tex/bb964ccc0ded6db8.dvi
rename to tests/control_data/graphical_units_data/deepcopy/Tex/bb964ccc0ded6db8.dvi
diff --git a/tests/tests_data/deepcopy/Tex/bb964ccc0ded6db8.svg b/tests/control_data/graphical_units_data/deepcopy/Tex/bb964ccc0ded6db8.svg
similarity index 100%
rename from tests/tests_data/deepcopy/Tex/bb964ccc0ded6db8.svg
rename to tests/control_data/graphical_units_data/deepcopy/Tex/bb964ccc0ded6db8.svg
diff --git a/tests/tests_data/deepcopy/Tex/bb964ccc0ded6db8.tex b/tests/control_data/graphical_units_data/deepcopy/Tex/bb964ccc0ded6db8.tex
similarity index 100%
rename from tests/tests_data/deepcopy/Tex/bb964ccc0ded6db8.tex
rename to tests/control_data/graphical_units_data/deepcopy/Tex/bb964ccc0ded6db8.tex
diff --git a/tests/tests_data/geometry/AnnularSectorTest.npy b/tests/control_data/graphical_units_data/geometry/AnnularSectorTest.npy
similarity index 100%
rename from tests/tests_data/geometry/AnnularSectorTest.npy
rename to tests/control_data/graphical_units_data/geometry/AnnularSectorTest.npy
diff --git a/tests/tests_data/geometry/AnnulusTest.npy b/tests/control_data/graphical_units_data/geometry/AnnulusTest.npy
similarity index 100%
rename from tests/tests_data/geometry/AnnulusTest.npy
rename to tests/control_data/graphical_units_data/geometry/AnnulusTest.npy
diff --git a/tests/tests_data/geometry/ArcBetweenPointsTest.npy b/tests/control_data/graphical_units_data/geometry/ArcBetweenPointsTest.npy
similarity index 100%
rename from tests/tests_data/geometry/ArcBetweenPointsTest.npy
rename to tests/control_data/graphical_units_data/geometry/ArcBetweenPointsTest.npy
diff --git a/tests/tests_data/geometry/ArcTest.npy b/tests/control_data/graphical_units_data/geometry/ArcTest.npy
similarity index 100%
rename from tests/tests_data/geometry/ArcTest.npy
rename to tests/control_data/graphical_units_data/geometry/ArcTest.npy
diff --git a/tests/tests_data/geometry/CircleTest.npy b/tests/control_data/graphical_units_data/geometry/CircleTest.npy
similarity index 100%
rename from tests/tests_data/geometry/CircleTest.npy
rename to tests/control_data/graphical_units_data/geometry/CircleTest.npy
diff --git a/tests/tests_data/geometry/CoordinatesTest.npy b/tests/control_data/graphical_units_data/geometry/CoordinatesTest.npy
similarity index 100%
rename from tests/tests_data/geometry/CoordinatesTest.npy
rename to tests/control_data/graphical_units_data/geometry/CoordinatesTest.npy
diff --git a/tests/tests_data/geometry/CurvedArrowTest.npy b/tests/control_data/graphical_units_data/geometry/CurvedArrowTest.npy
similarity index 100%
rename from tests/tests_data/geometry/CurvedArrowTest.npy
rename to tests/control_data/graphical_units_data/geometry/CurvedArrowTest.npy
diff --git a/tests/tests_data/geometry/DotTest.npy b/tests/control_data/graphical_units_data/geometry/DotTest.npy
similarity index 100%
rename from tests/tests_data/geometry/DotTest.npy
rename to tests/control_data/graphical_units_data/geometry/DotTest.npy
diff --git a/tests/tests_data/geometry/DoubleArrowTest.npy b/tests/control_data/graphical_units_data/geometry/DoubleArrowTest.npy
similarity index 100%
rename from tests/tests_data/geometry/DoubleArrowTest.npy
rename to tests/control_data/graphical_units_data/geometry/DoubleArrowTest.npy
diff --git a/tests/tests_data/geometry/Elbowtest.npy b/tests/control_data/graphical_units_data/geometry/Elbowtest.npy
similarity index 100%
rename from tests/tests_data/geometry/Elbowtest.npy
rename to tests/control_data/graphical_units_data/geometry/Elbowtest.npy
diff --git a/tests/tests_data/geometry/EllipseTest.npy b/tests/control_data/graphical_units_data/geometry/EllipseTest.npy
similarity index 100%
rename from tests/tests_data/geometry/EllipseTest.npy
rename to tests/control_data/graphical_units_data/geometry/EllipseTest.npy
diff --git a/tests/tests_data/geometry/LineTest.npy b/tests/control_data/graphical_units_data/geometry/LineTest.npy
similarity index 100%
rename from tests/tests_data/geometry/LineTest.npy
rename to tests/control_data/graphical_units_data/geometry/LineTest.npy
diff --git a/tests/tests_data/geometry/PolygonTest.npy b/tests/control_data/graphical_units_data/geometry/PolygonTest.npy
similarity index 100%
rename from tests/tests_data/geometry/PolygonTest.npy
rename to tests/control_data/graphical_units_data/geometry/PolygonTest.npy
diff --git a/tests/tests_data/geometry/RectangleTest.npy b/tests/control_data/graphical_units_data/geometry/RectangleTest.npy
similarity index 100%
rename from tests/tests_data/geometry/RectangleTest.npy
rename to tests/control_data/graphical_units_data/geometry/RectangleTest.npy
diff --git a/tests/tests_data/geometry/RoundedRectangleTest.npy b/tests/control_data/graphical_units_data/geometry/RoundedRectangleTest.npy
similarity index 100%
rename from tests/tests_data/geometry/RoundedRectangleTest.npy
rename to tests/control_data/graphical_units_data/geometry/RoundedRectangleTest.npy
diff --git a/tests/tests_data/geometry/SectorTest.npy b/tests/control_data/graphical_units_data/geometry/SectorTest.npy
similarity index 100%
rename from tests/tests_data/geometry/SectorTest.npy
rename to tests/control_data/graphical_units_data/geometry/SectorTest.npy
diff --git a/tests/tests_data/geometry/VectorTest.npy b/tests/control_data/graphical_units_data/geometry/VectorTest.npy
similarity index 100%
rename from tests/tests_data/geometry/VectorTest.npy
rename to tests/control_data/graphical_units_data/geometry/VectorTest.npy
diff --git a/tests/tests_data/graph/PlotFunctionsTest.npy b/tests/control_data/graphical_units_data/graph/PlotFunctions.npy
similarity index 100%
rename from tests/tests_data/graph/PlotFunctionsTest.npy
rename to tests/control_data/graphical_units_data/graph/PlotFunctions.npy
diff --git a/tests/tests_data/indication/ApplyWaveTest.npy b/tests/control_data/graphical_units_data/indication/ApplyWaveTest.npy
similarity index 100%
rename from tests/tests_data/indication/ApplyWaveTest.npy
rename to tests/control_data/graphical_units_data/indication/ApplyWaveTest.npy
diff --git a/tests/tests_data/indication/CircleIndicateTest.npy b/tests/control_data/graphical_units_data/indication/CircleIndicateTest.npy
similarity index 100%
rename from tests/tests_data/indication/CircleIndicateTest.npy
rename to tests/control_data/graphical_units_data/indication/CircleIndicateTest.npy
diff --git a/tests/tests_data/indication/FlashTest.npy b/tests/control_data/graphical_units_data/indication/FlashTest.npy
similarity index 100%
rename from tests/tests_data/indication/FlashTest.npy
rename to tests/control_data/graphical_units_data/indication/FlashTest.npy
diff --git a/tests/tests_data/indication/FocusOnTest.npy b/tests/control_data/graphical_units_data/indication/FocusOnTest.npy
similarity index 100%
rename from tests/tests_data/indication/FocusOnTest.npy
rename to tests/control_data/graphical_units_data/indication/FocusOnTest.npy
diff --git a/tests/tests_data/indication/IndicateTest.npy b/tests/control_data/graphical_units_data/indication/IndicateTest.npy
similarity index 100%
rename from tests/tests_data/indication/IndicateTest.npy
rename to tests/control_data/graphical_units_data/indication/IndicateTest.npy
diff --git a/tests/tests_data/indication/ShowCreationThenDestructionTest.npy b/tests/control_data/graphical_units_data/indication/ShowCreationThenDestructionTest.npy
similarity index 100%
rename from tests/tests_data/indication/ShowCreationThenDestructionTest.npy
rename to tests/control_data/graphical_units_data/indication/ShowCreationThenDestructionTest.npy
diff --git a/tests/tests_data/indication/ShowCreationThenFadeOutTest.npy b/tests/control_data/graphical_units_data/indication/ShowCreationThenFadeOutTest.npy
similarity index 100%
rename from tests/tests_data/indication/ShowCreationThenFadeOutTest.npy
rename to tests/control_data/graphical_units_data/indication/ShowCreationThenFadeOutTest.npy
diff --git a/tests/tests_data/indication/ShowPassingFlashAroundTest.npy b/tests/control_data/graphical_units_data/indication/ShowPassingFlashAroundTest.npy
similarity index 100%
rename from tests/tests_data/indication/ShowPassingFlashAroundTest.npy
rename to tests/control_data/graphical_units_data/indication/ShowPassingFlashAroundTest.npy
diff --git a/tests/tests_data/indication/ShowPassingFlashTest.npy b/tests/control_data/graphical_units_data/indication/ShowPassingFlashTest.npy
similarity index 100%
rename from tests/tests_data/indication/ShowPassingFlashTest.npy
rename to tests/control_data/graphical_units_data/indication/ShowPassingFlashTest.npy
diff --git a/tests/tests_data/indication/TurnInsideOutTest.npy b/tests/control_data/graphical_units_data/indication/TurnInsideOutTest.npy
similarity index 100%
rename from tests/tests_data/indication/TurnInsideOutTest.npy
rename to tests/control_data/graphical_units_data/indication/TurnInsideOutTest.npy
diff --git a/tests/tests_data/indication/WiggleOutThenInTest.npy b/tests/control_data/graphical_units_data/indication/WiggleOutThenInTest.npy
similarity index 100%
rename from tests/tests_data/indication/WiggleOutThenInTest.npy
rename to tests/control_data/graphical_units_data/indication/WiggleOutThenInTest.npy
diff --git a/tests/tests_data/movements/HomotopyTest.npy b/tests/control_data/graphical_units_data/movements/HomotopyTest.npy
similarity index 100%
rename from tests/tests_data/movements/HomotopyTest.npy
rename to tests/control_data/graphical_units_data/movements/HomotopyTest.npy
diff --git a/tests/tests_data/movements/MoveAlongPathTest.npy b/tests/control_data/graphical_units_data/movements/MoveAlongPathTest.npy
similarity index 100%
rename from tests/tests_data/movements/MoveAlongPathTest.npy
rename to tests/control_data/graphical_units_data/movements/MoveAlongPathTest.npy
diff --git a/tests/tests_data/movements/MoveToTest.npy b/tests/control_data/graphical_units_data/movements/MoveToTest.npy
similarity index 100%
rename from tests/tests_data/movements/MoveToTest.npy
rename to tests/control_data/graphical_units_data/movements/MoveToTest.npy
diff --git a/tests/tests_data/movements/PhaseFlowTest.npy b/tests/control_data/graphical_units_data/movements/PhaseFlowTest.npy
similarity index 100%
rename from tests/tests_data/movements/PhaseFlowTest.npy
rename to tests/control_data/graphical_units_data/movements/PhaseFlowTest.npy
diff --git a/tests/tests_data/movements/RotateTest.npy b/tests/control_data/graphical_units_data/movements/RotateTest.npy
similarity index 100%
rename from tests/tests_data/movements/RotateTest.npy
rename to tests/control_data/graphical_units_data/movements/RotateTest.npy
diff --git a/tests/tests_data/movements/ShiftTest.npy b/tests/control_data/graphical_units_data/movements/ShiftTest.npy
similarity index 100%
rename from tests/tests_data/movements/ShiftTest.npy
rename to tests/control_data/graphical_units_data/movements/ShiftTest.npy
diff --git a/tests/tests_data/sample_scenes/BasicScene.npy b/tests/control_data/graphical_units_data/sample_scenes/BasicScene.npy
similarity index 100%
rename from tests/tests_data/sample_scenes/BasicScene.npy
rename to tests/control_data/graphical_units_data/sample_scenes/BasicScene.npy
diff --git a/tests/tests_data/sample_scenes/BasicTex.npy b/tests/control_data/graphical_units_data/sample_scenes/BasicTex.npy
similarity index 100%
rename from tests/tests_data/sample_scenes/BasicTex.npy
rename to tests/control_data/graphical_units_data/sample_scenes/BasicTex.npy
diff --git a/tests/tests_data/sample_scenes/GeometryScene.npy b/tests/control_data/graphical_units_data/sample_scenes/GeometryScene.npy
similarity index 100%
rename from tests/tests_data/sample_scenes/GeometryScene.npy
rename to tests/control_data/graphical_units_data/sample_scenes/GeometryScene.npy
diff --git a/tests/tests_data/threed/AmbientCameraMoveTest.npy b/tests/control_data/graphical_units_data/threed/AmbientCameraMoveTest.npy
similarity index 100%
rename from tests/tests_data/threed/AmbientCameraMoveTest.npy
rename to tests/control_data/graphical_units_data/threed/AmbientCameraMoveTest.npy
diff --git a/tests/tests_data/threed/AxesTest.npy b/tests/control_data/graphical_units_data/threed/AxesTest.npy
similarity index 100%
rename from tests/tests_data/threed/AxesTest.npy
rename to tests/control_data/graphical_units_data/threed/AxesTest.npy
diff --git a/tests/tests_data/threed/CameraMoveTest.npy b/tests/control_data/graphical_units_data/threed/CameraMoveTest.npy
similarity index 100%
rename from tests/tests_data/threed/CameraMoveTest.npy
rename to tests/control_data/graphical_units_data/threed/CameraMoveTest.npy
diff --git a/tests/tests_data/threed/CubeTest.npy b/tests/control_data/graphical_units_data/threed/CubeTest.npy
similarity index 100%
rename from tests/tests_data/threed/CubeTest.npy
rename to tests/control_data/graphical_units_data/threed/CubeTest.npy
diff --git a/tests/tests_data/threed/SphereTest.npy b/tests/control_data/graphical_units_data/threed/SphereTest.npy
similarity index 100%
rename from tests/tests_data/threed/SphereTest.npy
rename to tests/control_data/graphical_units_data/threed/SphereTest.npy
diff --git a/tests/tests_data/transform/ApplyComplexFunctionTest.npy b/tests/control_data/graphical_units_data/transform/ApplyComplexFunctionTest.npy
similarity index 100%
rename from tests/tests_data/transform/ApplyComplexFunctionTest.npy
rename to tests/control_data/graphical_units_data/transform/ApplyComplexFunctionTest.npy
diff --git a/tests/tests_data/transform/ApplyFunctionTest.npy b/tests/control_data/graphical_units_data/transform/ApplyFunctionTest.npy
similarity index 100%
rename from tests/tests_data/transform/ApplyFunctionTest.npy
rename to tests/control_data/graphical_units_data/transform/ApplyFunctionTest.npy
diff --git a/tests/tests_data/transform/ApplyMatrixTest.npy b/tests/control_data/graphical_units_data/transform/ApplyMatrixTest.npy
similarity index 100%
rename from tests/tests_data/transform/ApplyMatrixTest.npy
rename to tests/control_data/graphical_units_data/transform/ApplyMatrixTest.npy
diff --git a/tests/tests_data/transform/ApplyPointwiseFunctionTest.npy b/tests/control_data/graphical_units_data/transform/ApplyPointwiseFunctionTest.npy
similarity index 100%
rename from tests/tests_data/transform/ApplyPointwiseFunctionTest.npy
rename to tests/control_data/graphical_units_data/transform/ApplyPointwiseFunctionTest.npy
diff --git a/tests/tests_data/transform/ClockwiseTransformTest.npy b/tests/control_data/graphical_units_data/transform/ClockwiseTransformTest.npy
similarity index 100%
rename from tests/tests_data/transform/ClockwiseTransformTest.npy
rename to tests/control_data/graphical_units_data/transform/ClockwiseTransformTest.npy
diff --git a/tests/tests_data/transform/CounterclockwiseTransformTest.npy b/tests/control_data/graphical_units_data/transform/CounterclockwiseTransformTest.npy
similarity index 100%
rename from tests/tests_data/transform/CounterclockwiseTransformTest.npy
rename to tests/control_data/graphical_units_data/transform/CounterclockwiseTransformTest.npy
diff --git a/tests/tests_data/transform/CyclicReplaceTest.npy b/tests/control_data/graphical_units_data/transform/CyclicReplaceTest.npy
similarity index 100%
rename from tests/tests_data/transform/CyclicReplaceTest.npy
rename to tests/control_data/graphical_units_data/transform/CyclicReplaceTest.npy
diff --git a/tests/tests_data/transform/FadeToColortTest.npy b/tests/control_data/graphical_units_data/transform/FadeToColortTest.npy
similarity index 100%
rename from tests/tests_data/transform/FadeToColortTest.npy
rename to tests/control_data/graphical_units_data/transform/FadeToColortTest.npy
diff --git a/tests/tests_data/transform/MoveToTargetTest.npy b/tests/control_data/graphical_units_data/transform/MoveToTargetTest.npy
similarity index 100%
rename from tests/tests_data/transform/MoveToTargetTest.npy
rename to tests/control_data/graphical_units_data/transform/MoveToTargetTest.npy
diff --git a/tests/tests_data/transform/RestoreTest.npy b/tests/control_data/graphical_units_data/transform/RestoreTest.npy
similarity index 100%
rename from tests/tests_data/transform/RestoreTest.npy
rename to tests/control_data/graphical_units_data/transform/RestoreTest.npy
diff --git a/tests/tests_data/transform/ScaleInPlaceTest.npy b/tests/control_data/graphical_units_data/transform/ScaleInPlaceTest.npy
similarity index 100%
rename from tests/tests_data/transform/ScaleInPlaceTest.npy
rename to tests/control_data/graphical_units_data/transform/ScaleInPlaceTest.npy
diff --git a/tests/tests_data/transform/ShrinkToCenterTest.npy b/tests/control_data/graphical_units_data/transform/ShrinkToCenterTest.npy
similarity index 100%
rename from tests/tests_data/transform/ShrinkToCenterTest.npy
rename to tests/control_data/graphical_units_data/transform/ShrinkToCenterTest.npy
diff --git a/tests/tests_data/transform/TransformFromCopyTest.npy b/tests/control_data/graphical_units_data/transform/TransformFromCopyTest.npy
similarity index 100%
rename from tests/tests_data/transform/TransformFromCopyTest.npy
rename to tests/control_data/graphical_units_data/transform/TransformFromCopyTest.npy
diff --git a/tests/tests_data/transform/TransformTest.npy b/tests/control_data/graphical_units_data/transform/TransformTest.npy
similarity index 100%
rename from tests/tests_data/transform/TransformTest.npy
rename to tests/control_data/graphical_units_data/transform/TransformTest.npy
diff --git a/tests/tests_data/updaters/UpdaterTest.npy b/tests/control_data/graphical_units_data/updaters/UpdaterTest.npy
similarity index 100%
rename from tests/tests_data/updaters/UpdaterTest.npy
rename to tests/control_data/graphical_units_data/updaters/UpdaterTest.npy
diff --git a/tests/tests_data/updaters/ValueTrackerTest.npy b/tests/control_data/graphical_units_data/updaters/ValueTrackerTest.npy
similarity index 100%
rename from tests/tests_data/updaters/ValueTrackerTest.npy
rename to tests/control_data/graphical_units_data/updaters/ValueTrackerTest.npy
diff --git a/tests/tests_data/writing/TexMobjectTest.npy b/tests/control_data/graphical_units_data/writing/DarwinTexMobjectTest.npy
similarity index 100%
rename from tests/tests_data/writing/TexMobjectTest.npy
rename to tests/control_data/graphical_units_data/writing/DarwinTexMobjectTest.npy
diff --git a/tests/tests_data/writing/TextMobjectTest.npy b/tests/control_data/graphical_units_data/writing/DarwinTextMobjectTest.npy
similarity index 100%
rename from tests/tests_data/writing/TextMobjectTest.npy
rename to tests/control_data/graphical_units_data/writing/DarwinTextMobjectTest.npy
diff --git a/tests/control_data/graphical_units_data/writing/DarwinTextTest.npy b/tests/control_data/graphical_units_data/writing/DarwinTextTest.npy
new file mode 100644
index 000000000..b8104af03
Binary files /dev/null and b/tests/control_data/graphical_units_data/writing/DarwinTextTest.npy differ
diff --git a/tests/tests_data/graph/NumberLineTest.npy b/tests/control_data/graphical_units_data/writing/LinuxTexMobjectTest.npy
similarity index 66%
rename from tests/tests_data/graph/NumberLineTest.npy
rename to tests/control_data/graphical_units_data/writing/LinuxTexMobjectTest.npy
index 4115e4419..804bc2135 100644
Binary files a/tests/tests_data/graph/NumberLineTest.npy and b/tests/control_data/graphical_units_data/writing/LinuxTexMobjectTest.npy differ
diff --git a/tests/control_data/graphical_units_data/writing/LinuxTextMobjectTest.npy b/tests/control_data/graphical_units_data/writing/LinuxTextMobjectTest.npy
new file mode 100644
index 000000000..6ef740e76
Binary files /dev/null and b/tests/control_data/graphical_units_data/writing/LinuxTextMobjectTest.npy differ
diff --git a/tests/control_data/graphical_units_data/writing/LinuxTextTest.npy b/tests/control_data/graphical_units_data/writing/LinuxTextTest.npy
new file mode 100644
index 000000000..ef3a4015c
Binary files /dev/null and b/tests/control_data/graphical_units_data/writing/LinuxTextTest.npy differ
diff --git a/tests/control_data/graphical_units_data/writing/WindowsTexMobjectTest.npy b/tests/control_data/graphical_units_data/writing/WindowsTexMobjectTest.npy
new file mode 100644
index 000000000..83cde8237
Binary files /dev/null and b/tests/control_data/graphical_units_data/writing/WindowsTexMobjectTest.npy differ
diff --git a/tests/control_data/graphical_units_data/writing/WindowsTextMobjectTest.npy b/tests/control_data/graphical_units_data/writing/WindowsTextMobjectTest.npy
new file mode 100644
index 000000000..f9215108c
Binary files /dev/null and b/tests/control_data/graphical_units_data/writing/WindowsTextMobjectTest.npy differ
diff --git a/tests/tests_data/writing/TextTest.npy b/tests/control_data/graphical_units_data/writing/WindowsTextTest.npy
similarity index 100%
rename from tests/tests_data/writing/TextTest.npy
rename to tests/control_data/graphical_units_data/writing/WindowsTextTest.npy
diff --git a/tests/control_data/videos_data/SquareToCircleWithDefaultValues.json b/tests/control_data/videos_data/SquareToCircleWithDefaultValues.json
new file mode 100644
index 000000000..0f02b3d06
--- /dev/null
+++ b/tests/control_data/videos_data/SquareToCircleWithDefaultValues.json
@@ -0,0 +1,11 @@
+{
+ "name": "SquareToCircle",
+ "config": {
+ "codec_name": "h264",
+ "width": 1920,
+ "height": 1080,
+ "avg_frame_rate": "60/1",
+ "duration": "1.000000",
+ "nb_frames": "60"
+ }
+}
\ No newline at end of file
diff --git a/tests/control_data/videos_data/SquareToCircleWithlFlag.json b/tests/control_data/videos_data/SquareToCircleWithlFlag.json
new file mode 100644
index 000000000..0c5182ca3
--- /dev/null
+++ b/tests/control_data/videos_data/SquareToCircleWithlFlag.json
@@ -0,0 +1,11 @@
+{
+ "name": "SquareToCircleWithlFlag",
+ "config": {
+ "codec_name": "h264",
+ "width": 854,
+ "height": 480,
+ "avg_frame_rate": "15/1",
+ "duration": "1.000000",
+ "nb_frames": "15"
+ }
+}
\ No newline at end of file
diff --git a/tests/helpers/__init__.py b/tests/helpers/__init__.py
new file mode 100644
index 000000000..e69de29bb
diff --git a/tests/helpers/graphical_units.py b/tests/helpers/graphical_units.py
new file mode 100644
index 000000000..01bfb1379
--- /dev/null
+++ b/tests/helpers/graphical_units.py
@@ -0,0 +1,54 @@
+"""Helpers functions for devs to set up new graphical-units data."""
+
+
+import os
+import tempfile
+import numpy as np
+
+import manim
+from manim import config, file_writer_config, logger
+
+
+def set_test_scene(scene_object, module_name):
+ """Function used to set up the test data for a new feature. This will basically set up a pre-rendered frame for a scene. This is meant to be used only
+ when setting up tests. Please refer to the wiki.
+
+ Parameters
+ ----------
+ scene_object : :class:`~.Scene`
+ The scene with wich we want to set up a new test.
+ module_name : :class:`str`
+ The name of the module in which the functionnality tested is contained. For example, 'Write' is contained in the module 'creation'. This will be used in the folder architecture
+ of '/tests_data'.
+
+ Examples
+ --------
+ Normal usage::
+
+ set_test_scene(DotTest, "geometry")
+ """
+
+ file_writer_config["skip_animations"] = True
+ file_writer_config["write_to_movie"] = False
+ file_writer_config["disable_caching"] = True
+ config["pixel_height"] = 480
+ config["pixel_width"] = 854
+ config["frame_rate"] = 15
+
+ with tempfile.TemporaryDirectory() as tmpdir:
+ os.makedirs(os.path.join(tmpdir, "tex"))
+ file_writer_config["text_dir"] = os.path.join(tmpdir, "text")
+ file_writer_config["tex_dir"] = os.path.join(tmpdir, "tex")
+ scene = scene_object()
+ data = scene.get_frame()
+
+ tests_directory = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
+ path_control_data = os.path.join(
+ tests_directory, "control_data", "graphical_units_data"
+ )
+ print(path_control_data)
+ path = os.path.join(path_control_data, module_name)
+ if not os.path.isdir(path):
+ os.makedirs(path)
+ np.save(os.path.join(path, str(scene)), data)
+ logger.info(f"Test data for {str(scene)} saved in {path}\n")
diff --git a/tests/helpers/video_utils.py b/tests/helpers/video_utils.py
new file mode 100644
index 000000000..4d3058b1c
--- /dev/null
+++ b/tests/helpers/video_utils.py
@@ -0,0 +1,59 @@
+"""Helpers for dev to set up new tests that use videos."""
+
+import os
+import subprocess
+import json
+
+from manim.logger import logger
+
+
+def capture(command):
+ proc = subprocess.Popen(
+ command,
+ stdout=subprocess.PIPE,
+ stderr=subprocess.PIPE,
+ encoding="utf8",
+ )
+ out, err = proc.communicate()
+ return out, err, proc.returncode
+
+
+def get_config_from_video(path_to_video):
+ command = [
+ "ffprobe",
+ "-v",
+ "error",
+ "-select_streams",
+ "v:0",
+ "-show_entries",
+ "stream=width,height,nb_frames,duration,avg_frame_rate,codec_name",
+ "-print_format",
+ "json",
+ path_to_video,
+ ]
+ config, err, exitcode = capture(command)
+ assert exitcode == 0, err
+ return config
+
+
+def save_control_data_from_video(path_to_video, name):
+ """Helper used to set up a new test that will compare videos. This will create a new .json file in control_data/videos_data that contains
+ informations tested of the video, including its hash. Refer to the wiki for more informations.
+
+ Parameters
+ ----------
+ path_to_video : :class:`str`
+ Path to the video to extract information from.
+ name : :class:`str`
+ Name of the test. The .json file will be named with it.
+ """
+ tests_directory = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
+ path_control_data = os.path.join(tests_directory, "control_data", "videos_data")
+ config_video = get_config_from_video(path_to_video)
+ data = {
+ "name": name,
+ "config": json.loads(config_video)["streams"][0],
+ }
+ path_saved = os.path.join(path_control_data, f"{name}.json")
+ json.dump(data, open(path_saved, "w"), indent=4)
+ logger.info(f"Data for {name} saved in {path_saved}")
diff --git a/tests/manim.cfg b/tests/manim.cfg
deleted file mode 100644
index ee0cd43aa..000000000
--- a/tests/manim.cfg
+++ /dev/null
@@ -1,14 +0,0 @@
-[CLI]
-frame_rate = 15
-pixel_height = 480
-pixel_width = 854
-from_at_animation_number = 0
-upto_at_animation_number = -1
-png_mode = RGB
-movie_file_extension = .mp4
-write_to_movie = False
-write_all = False
-save_last_frame = False
-save_pngs = False
-save_as_gif = False
-leave_progress_bars = False
diff --git a/tests/test_cli/dash_test_script.txt b/tests/test_cli/dash_test_script.txt
deleted file mode 100644
index 4c69d9d23..000000000
--- a/tests/test_cli/dash_test_script.txt
+++ /dev/null
@@ -1,5 +0,0 @@
-# from manim import *
-class DashAsNameTest(Scene):
- def construct(self):
- self.play(ReplacementTransform(Square(),Circle()))
- self.wait(2)
\ No newline at end of file
diff --git a/tests/test_cli/manim.cfg b/tests/test_cli/manim.cfg
deleted file mode 100644
index 3f866d46f..000000000
--- a/tests/test_cli/manim.cfg
+++ /dev/null
@@ -1,11 +0,0 @@
-[CLI]
-movie_file_extension = .mp4
-write_to_movie = True
-sound = True
-verbosity = DEBUG
-# write_all = False
-save_last_frame = True
-# save_pngs = False
-
-[logger]
-log_width = 512
\ No newline at end of file
diff --git a/tests/test_cli/test_cfg_subcmd.py b/tests/test_cli/test_cfg_subcmd.py
deleted file mode 100644
index e994febc0..000000000
--- a/tests/test_cli/test_cfg_subcmd.py
+++ /dev/null
@@ -1,57 +0,0 @@
-import pytest
-import os
-import shutil
-
-from test_cli import capture
-
-this_folder = os.path.dirname(__file__)
-
-
-def test_cfg_help(python_version):
- """Test if Manim successfully adds configparsers when a subcommand is invoked."""
- command = f"cd {this_folder} && {python_version} -m manim cfg --help"
- out, err, exitcode = capture(command, use_shell=True)
- assert (
- exitcode == 0
- ), f"The cfg subcommand help is not working as intended.\nError : {err}"
-
-
-def test_cfg_show(python_version):
- """Test if the `manim cfg show` command works as intended."""
- command = f"cd {this_folder} && {python_version} -m manim cfg show"
- out, err, exitcode = capture(command, use_shell=True)
- assert exitcode == 0, err
- assert f"{os.path.sep}tests{os.path.sep}".encode("utf-8") in out, err
-
-
-def test_cfg_export(python_version):
- """Test if the `manim cfg export` command works as intended."""
- command = f"cd {this_folder} && {python_version} -m manim cfg export --dir temp"
- out, err, exitcode = capture(command, use_shell=True)
- assert (
- exitcode == 0
- ), f"The cfg subcommand export is not working as intended.\nError : {err}"
- assert os.path.exists(os.path.join(this_folder, "temp", "manim.cfg"))
- with open(os.path.join(this_folder, "temp", "manim.cfg"), "r") as writtencfg:
- assert "sound = True" in writtencfg.read(), err
- shutil.rmtree(os.path.join(this_folder, "temp"))
-
-
[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")
- command = f"cd {this_folder} && {python_version} -m manim cfg write --level cwd"
-
- """As the number of config values that `manim cfg write` can modify increases, so
- must the number of newlines and/or values written in write_cfg_sbcmd_input increase."""
- out, err, exitcode = capture(
- command,
- instream=open(os.path.join(this_folder, "write_cfg_sbcmd_input.txt")),
- use_shell=True,
- )
- assert (
- exitcode == 0
- ), f"The cfg subcommand write is not working as intended.\nError : {err.decode()}"
- with open(cfgfilepath, "r") as cfgfile:
- assert "sound = False" in cfgfile.read()
diff --git a/tests/test_cli/test_cli.py b/tests/test_cli/test_cli.py
deleted file mode 100644
index 3318d457c..000000000
--- a/tests/test_cli/test_cli.py
+++ /dev/null
@@ -1,85 +0,0 @@
-import subprocess
-import os
-from shutil import rmtree
-import pytest
-
-
-def capture(command, instream=None, use_shell=False):
- proc = subprocess.Popen(
- command,
- stdout=subprocess.PIPE,
- stderr=subprocess.PIPE,
- stdin=instream,
- shell=use_shell,
- )
- out, err = proc.communicate()
- return out, err, proc.returncode
-
-
-def test_help(python_version):
- command = [python_version, "-m", "manim", "--help"]
- out, err, exitcode = capture(command)
- assert (
- exitcode == 0
- ), f"Manim has been installed incorrectly. Please refer to the troubleshooting section on the wiki. Error:\n{err.decode()}"
-
-
-def test_basicScene(python_version):
- """ Simulate SquareToCircle. The cache will be saved in tests_caches/media_temp (temporary directory). This is mainly intended to test the partial-movies process. """
- path_basic_scene = os.path.join("tests", "tests_data", "basic_scenes.py")
- path_output = os.path.join("tests_cache", "media_temp")
- command = [
- python_version,
- "-m",
- "manim",
- path_basic_scene,
- "SquareToCircle",
- "-l",
- "--media_dir",
- path_output,
- ]
- out, err, exitcode = capture(command)
- assert exitcode == 0, err
- assert os.path.exists(
- os.path.join(
- path_output, "videos", "basic_scenes", "480p15", "SquareToCircle.mp4"
- )
- ), err
- rmtree(path_output)
-
-
-def test_WriteStuff(python_version):
- """This is mainly intended to test the caching process of the tex objects"""
- path_basic_scene = os.path.join("tests", "tests_data", "basic_scenes.py")
- path_output = os.path.join("tests_cache", "media_temp")
- command = [
- python_version,
- "-m",
- "manim",
- path_basic_scene,
- "WriteStuff",
- "-l",
- "--media_dir",
- path_output,
- ]
- out, err, exitcode = capture(command)
- assert exitcode == 0, err
- assert os.path.exists(
- os.path.join(path_output, "videos", "basic_scenes", "480p15", "WriteStuff.mp4")
- ), err
- rmtree(path_output)
-
-
-def test_dash_as_name(python_version):
- """Simulate using - as a filename. Intended to test the feature that allows end users to type manim code on the spot."""
- path_output = os.path.join("tests_cache", "media_temp")
- command = [python_version, "-m", "manim", "-", "-l", "--media_dir", path_output]
- out, err, exitcode = capture(
- command,
- instream=open(os.path.join(os.path.dirname(__file__), "dash_test_script.txt")),
- )
- assert exitcode == 0, err
- assert os.path.exists(
- os.path.join(path_output, "videos", "-", "480p15", "DashAsNameTest.mp4")
- ), err
- rmtree(path_output)
diff --git a/tests/test_cli/write_cfg_sbcmd_input.txt b/tests/test_cli/write_cfg_sbcmd_input.txt
deleted file mode 100644
index d06995fd2..000000000
--- a/tests/test_cli/write_cfg_sbcmd_input.txt
+++ /dev/null
@@ -1,74 +0,0 @@
-
-
-
-
-
-
-
-
-
-False
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/tests/test_copy.py b/tests/test_copy.py
index d60125bfd..dde6a0894 100644
--- a/tests/test_copy.py
+++ b/tests/test_copy.py
@@ -15,14 +15,16 @@ def test_mobject_copy():
assert orig.submobjects[i] is not copy.submobjects[i]
-def test_bracelabel_copy():
+def test_bracelabel_copy(tmp_path):
"""Test that a copy is a deepcopy."""
# For this test to work, we need to tweak some folders temporarily
original_text_dir = file_writer_config["text_dir"]
original_tex_dir = file_writer_config["tex_dir"]
- mediadir = os.path.join("tests", "tests_data", "deepcopy")
+ mediadir = os.path.join(tmp_path, "deepcopy")
file_writer_config["text_dir"] = os.path.join(mediadir, "Text")
file_writer_config["tex_dir"] = os.path.join(mediadir, "Tex")
+ for el in ["text_dir", "tex_dir"]:
+ os.makedirs(file_writer_config[el])
# Before the refactoring of Mobject.copy(), the class BraceLabel was the
# only one to have a non-trivial definition of copy. Here we test that it
diff --git a/tests/test_graph.py b/tests/test_graph.py
deleted file mode 100644
index 1bfafc4d4..000000000
--- a/tests/test_graph.py
+++ /dev/null
@@ -1,54 +0,0 @@
-from manim import *
-from testing_utils import utils_test_scenes, get_scenes_to_test
-
-
-class PlotFunctionsTest(GraphScene):
- CONFIG = {
- "x_min": -10,
- "x_max": 10.3,
- "y_min": -1.5,
- "y_max": 1.5,
- "graph_origin": ORIGIN,
- "function_color": RED,
- "axes_color": GREEN,
- "x_labeled_nums": range(-10, 12, 2),
- }
-
- def construct(self):
- constants.TEX_TEMPLATE = TexTemplate()
- self.setup_axes()
- f = self.get_graph(lambda x: x ** 2)
-
- self.play(Animation(f))
-
-
-class NumberLineTest(GraphScene):
- CONFIG = {
- "x_min": -10,
- "x_max": 10.3,
- "y_min": -1.5,
- "y_max": 1.5,
- "graph_origin": ORIGIN,
- "axes_color": YELLOW,
- "x_labeled_nums": range(-10, 12, 2),
- "y_labeled_nums": range(-1, 2),
- "x_axis_config": {
- "x_min": -5,
- "decimal_number_config": {"num_decimal_places": 1,},
- },
- "y_axis_config": {
- "color": RED,
- "decimal_number_config": {"num_decimal_places": 2,},
- },
- }
-
- def construct(self):
- constants.TEX_TEMPLATE = TexTemplate()
- self.setup_axes()
- f = self.get_graph(lambda x: x ** 2)
-
- self.play(Animation(f))
-
-
-def test_scenes():
- utils_test_scenes(get_scenes_to_test(__name__), "graph", caching_needed=True)
diff --git a/tests/test_graphical_units/__init__.py b/tests/test_graphical_units/__init__.py
new file mode 100644
index 000000000..e69de29bb
diff --git a/tests/test_graphical_units/conftest.py b/tests/test_graphical_units/conftest.py
new file mode 100644
index 000000000..5d8200504
--- /dev/null
+++ b/tests/test_graphical_units/conftest.py
@@ -0,0 +1,6 @@
+import pytest
+
+
+def show_diff(request):
+ return request.config.getoption("show_diff")
diff --git a/tests/test_creation.py b/tests/test_graphical_units/test_creation.py
similarity index 84%
rename from tests/test_creation.py
rename to tests/test_graphical_units/test_creation.py
index a20ef09b5..c7c1e1bed 100644
--- a/tests/test_creation.py
+++ b/tests/test_graphical_units/test_creation.py
@@ -1,5 +1,8 @@
+import pytest
+
from manim import *
-from testing_utils import utils_test_scenes, get_scenes_to_test
+from ..utils.testing_utils import get_scenes_to_test
+from ..utils.GraphicalUnitTester import GraphicalUnitTester
class ShowCreationTest(Scene):
@@ -91,5 +94,9 @@ class ShrinkToCenterTest(Scene):
self.play(ShrinkToCenter(square))
-def test_scenes():
- utils_test_scenes(get_scenes_to_test(__name__), "creation")
+MODULE_NAME = "creation"
+
+
[email protected]("scene_to_test", get_scenes_to_test(__name__), indirect=False)
+def test_scene(scene_to_test, tmpdir, show_diff):
+ GraphicalUnitTester(scene_to_test[1], MODULE_NAME, tmpdir).test(show_diff=show_diff)
diff --git a/tests/test_geometry.py b/tests/test_graphical_units/test_geometry.py
similarity index 84%
rename from tests/test_geometry.py
rename to tests/test_graphical_units/test_geometry.py
index 8ce9aa354..3d2adaf15 100644
--- a/tests/test_geometry.py
+++ b/tests/test_graphical_units/test_geometry.py
@@ -1,6 +1,8 @@
+import pytest
+
from manim import *
-import numpy as np
-from testing_utils import utils_test_scenes, get_scenes_to_test
+from ..utils.testing_utils import get_scenes_to_test
+from ..utils.GraphicalUnitTester import GraphicalUnitTester
class CoordinatesTest(Scene):
@@ -105,5 +107,9 @@ class RoundedRectangleTest(Scene):
self.play(Animation(a))
-def test_scenes():
- utils_test_scenes(get_scenes_to_test(__name__), "geometry")
+MODULE_NAME = "geometry"
+
+
[email protected]("scene_to_test", get_scenes_to_test(__name__), indirect=False)
+def test_scene(scene_to_test, tmpdir, show_diff):
+ GraphicalUnitTester(scene_to_test[1], MODULE_NAME, tmpdir).test(show_diff=show_diff)
diff --git a/tests/test_graphical_units/test_graph.py b/tests/test_graphical_units/test_graph.py
new file mode 100644
index 000000000..5dfac1841
--- /dev/null
+++ b/tests/test_graphical_units/test_graph.py
@@ -0,0 +1,34 @@
+import pytest
+
+from manim import *
+from ..utils.testing_utils import get_scenes_to_test
+from ..utils.GraphicalUnitTester import GraphicalUnitTester
+
+
+class PlotFunctions(GraphScene):
+ CONFIG = {
+ "x_min": -10,
+ "x_max": 10.3,
+ "y_min": -1.5,
+ "y_max": 1.5,
+ "graph_origin": ORIGIN,
+ "function_color": RED,
+ "axes_color": GREEN,
+ "x_labeled_nums": range(-10, 12, 2),
+ }
+
+ def construct(self):
+ constants.TEX_TEMPLATE = TexTemplate()
+ self.setup_axes()
+ f = self.get_graph(lambda x: x ** 2)
+
+ self.play(Animation(f))
+
+
+MODULE_NAME = "graph"
+
+
[email protected]("scene_to_test", get_scenes_to_test(__name__), indirect=False)
+def test_scene(scene_to_test, tmpdir, show_diff):
+ GraphicalUnitTester(scene_to_test[1], MODULE_NAME, tmpdir).test(show_diff=show_diff)
diff --git a/tests/test_indication.py b/tests/test_graphical_units/test_indication.py
similarity index 80%
rename from tests/test_indication.py
rename to tests/test_graphical_units/test_indication.py
index a780cd7ec..28d3d6498 100644
--- a/tests/test_indication.py
+++ b/tests/test_graphical_units/test_indication.py
@@ -1,5 +1,8 @@
+import pytest
+
from manim import *
-from testing_utils import utils_test_scenes, get_scenes_to_test
+from ..utils.testing_utils import get_scenes_to_test
+from ..utils.GraphicalUnitTester import GraphicalUnitTester
class FocusOnTest(Scene):
@@ -74,5 +77,9 @@ class TurnInsideOutTest(Scene):
self.play(TurnInsideOut(square))
-def test_scenes():
- utils_test_scenes(get_scenes_to_test(__name__), "indication")
+MODULE_NAME = "indication"
+
+
[email protected]("scene_to_test", get_scenes_to_test(__name__), indirect=False)
+def test_scene(scene_to_test, tmpdir, show_diff):
+ GraphicalUnitTester(scene_to_test[1], MODULE_NAME, tmpdir).test(show_diff=show_diff)
diff --git a/tests/test_movements.py b/tests/test_graphical_units/test_movements.py
similarity index 74%
rename from tests/test_movements.py
rename to tests/test_graphical_units/test_movements.py
index 87da4f448..b024f7bc1 100644
--- a/tests/test_movements.py
+++ b/tests/test_graphical_units/test_movements.py
@@ -1,5 +1,8 @@
+import pytest
+
from manim import *
-from testing_utils import utils_test_scenes, get_scenes_to_test
+from ..utils.testing_utils import get_scenes_to_test
+from ..utils.GraphicalUnitTester import GraphicalUnitTester
class HomotopyTest(Scene):
@@ -49,5 +52,9 @@ class ShiftTest(Scene):
self.play(square.shift, UP)
-def test_scenes():
- utils_test_scenes(get_scenes_to_test(__name__), "movements")
+MODULE_NAME = "movements"
+
+
[email protected]("scene_to_test", get_scenes_to_test(__name__), indirect=False)
+def test_scene(scene_to_test, tmpdir, show_diff):
+ GraphicalUnitTester(scene_to_test[1], MODULE_NAME, tmpdir).test(show_diff=show_diff)
diff --git a/tests/test_threed.py b/tests/test_graphical_units/test_threed.py
similarity index 63%
rename from tests/test_threed.py
rename to tests/test_graphical_units/test_threed.py
index 87d85529c..ce7cc8ae3 100644
--- a/tests/test_threed.py
+++ b/tests/test_graphical_units/test_threed.py
@@ -1,5 +1,8 @@
+import pytest
+
from manim import *
-from testing_utils import utils_test_scenes, get_scenes_to_test
+from ..utils.testing_utils import get_scenes_to_test
+from ..utils.GraphicalUnitTester import GraphicalUnitTester
class CubeTest(ThreeDScene):
@@ -31,5 +34,9 @@ class AmbientCameraMoveTest(ThreeDScene):
self.play(Animation(cube))
-def test_scenes():
- utils_test_scenes(get_scenes_to_test(__name__), "threed")
+MODULE_NAME = "threed"
+
+
[email protected]("scene_to_test", get_scenes_to_test(__name__), indirect=False)
+def test_scene(scene_to_test, tmpdir, show_diff):
+ GraphicalUnitTester(scene_to_test[1], MODULE_NAME, tmpdir).test(show_diff=show_diff)
diff --git a/tests/test_transform.py b/tests/test_graphical_units/test_transform.py
similarity index 87%
rename from tests/test_transform.py
rename to tests/test_graphical_units/test_transform.py
index 80f83dfb3..98e7aae18 100644
--- a/tests/test_transform.py
+++ b/tests/test_graphical_units/test_transform.py
@@ -1,5 +1,8 @@
+import pytest
+
from manim import *
-from testing_utils import utils_test_scenes, get_scenes_to_test
+from ..utils.testing_utils import get_scenes_to_test
+from ..utils.GraphicalUnitTester import GraphicalUnitTester
class TransformTest(Scene):
@@ -116,5 +119,9 @@ class CyclicReplaceTest(Scene):
self.play(CyclicReplace(square, circle))
-def test_scenes():
- utils_test_scenes(get_scenes_to_test(__name__), "transform")
+MODULE_NAME = "transform"
+
+
[email protected]("scene_to_test", get_scenes_to_test(__name__), indirect=False)
+def test_scene(scene_to_test, tmpdir, show_diff):
+ GraphicalUnitTester(scene_to_test[1], MODULE_NAME, tmpdir).test(show_diff=show_diff)
diff --git a/tests/test_updaters.py b/tests/test_graphical_units/test_updaters.py
similarity index 60%
rename from tests/test_updaters.py
rename to tests/test_graphical_units/test_updaters.py
index c3bd80177..44c0722e7 100644
--- a/tests/test_updaters.py
+++ b/tests/test_graphical_units/test_updaters.py
@@ -1,5 +1,8 @@
+import pytest
+
from manim import *
-from testing_utils import utils_test_scenes, get_scenes_to_test
+from ..utils.testing_utils import get_scenes_to_test
+from ..utils.GraphicalUnitTester import GraphicalUnitTester
class UpdaterTest(Scene):
@@ -21,5 +24,9 @@ class ValueTrackerTest(Scene):
line_2.rotate(theta.get_value(), about_point=ORIGIN)
-def test_scenes():
- utils_test_scenes(get_scenes_to_test(__name__), "updaters")
+MODULE_NAME = "updaters"
+
+
[email protected]("scene_to_test", get_scenes_to_test(__name__), indirect=False)
+def test_scene(scene_to_test, tmpdir, show_diff):
+ GraphicalUnitTester(scene_to_test[1], MODULE_NAME, tmpdir).test(show_diff=show_diff)
diff --git a/tests/test_imports.py b/tests/test_imports.py
deleted file mode 100644
index 4560d4e98..000000000
--- a/tests/test_imports.py
+++ /dev/null
@@ -1,13 +0,0 @@
-from types import ModuleType
-
-def test_import():
- # check that the package imports without errors
- import manim
-
- # check that we have access to both the module and dict
- from manim import _config, config
- assert isinstance(_config, ModuleType)
- assert isinstance(config, dict)
-
- # check that we have access to the logger
- from manim import logger, console
diff --git a/tests/tests_data/basic_scenes.py b/tests/test_logging/basic_scenes.py
similarity index 100%
rename from tests/tests_data/basic_scenes.py
rename to tests/test_logging/basic_scenes.py
diff --git a/tests/test_logging/test_logging.py b/tests/test_logging/test_logging.py
index 4fc7ba92f..7f188d018 100644
--- a/tests/test_logging/test_logging.py
+++ b/tests/test_logging/test_logging.py
@@ -5,37 +5,47 @@ import pytest
import re
-def capture(command, instream=None):
+def capture(command, instream=None, use_shell=False):
proc = subprocess.Popen(
- command, stdout=subprocess.PIPE, stderr=subprocess.PIPE, stdin=instream
+ command,
+ stdout=subprocess.PIPE,
+ stderr=subprocess.PIPE,
+ stdin=instream,
+ shell=use_shell,
)
out, err = proc.communicate()
return out, err, proc.returncode
[email protected]("clean_tests_cache")
-def test_logging_to_file(python_version):
+def test_logging_to_file(tmp_path, python_version):
"""Test logging Terminal output to a log file.
As some data will differ with each log (the timestamps, file paths, line nums etc)
a regex substitution has been employed to replace the strings that may change with
whitespace.
"""
- path_basic_scene = os.path.join("tests", "tests_data", "basic_scenes.py")
- path_output = os.path.join("tests", "tests_cache", "media_temp")
- command = [
- python_version,
- "-m",
- "manim",
- path_basic_scene,
- "SquareToCircle",
- "-l",
- "--log_to_file",
- "--log_dir",
- os.path.join(path_output, "logs"),
- "--media_dir",
- path_output,
- ]
- out, err, exitcode = capture(command)
+ path_basic_scene = os.path.join("tests", "test_logging", "basic_scenes.py")
+ path_output = os.path.join(tmp_path, "media_temp")
+ os.makedirs(tmp_path, exist_ok=True)
+ command = " ".join(
+ [
+ python_version,
+ "-m",
+ "manim",
+ path_basic_scene,
+ "SquareToCircle",
+ "-l",
+ "--log_to_file",
+ "--log_dir",
+ os.path.join(path_output, "logs"),
+ "--media_dir",
+ path_output,
+ "-v",
+ "DEBUG",
+ "--config_file",
+ os.path.join("tests", "test_logging", "testloggingconfig.cfg"),
+ ]
+ )
+ out, err, exitcode = capture(command, use_shell=True)
log_file_path = os.path.join(path_output, "logs", "SquareToCircle.log")
assert exitcode == 0, err.decode()
assert os.path.exists(log_file_path), err.decode()
diff --git a/tests/tests_data/manim.cfg b/tests/test_logging/testloggingconfig.cfg
similarity index 100%
rename from tests/tests_data/manim.cfg
rename to tests/test_logging/testloggingconfig.cfg
diff --git a/tests/test_scene_rendering/__init__.py b/tests/test_scene_rendering/__init__.py
new file mode 100644
index 000000000..e69de29bb
diff --git a/tests/test_scene_rendering/conftest.py b/tests/test_scene_rendering/conftest.py
new file mode 100644
index 000000000..81826ab81
--- /dev/null
+++ b/tests/test_scene_rendering/conftest.py
@@ -0,0 +1,15 @@
+import pytest
+import os
+
+
+from manim import file_writer_config
+
+
+def manim_cfg_file():
+ return os.path.join(os.path.dirname(__file__), "manim.cfg")
+
+
+def simple_scenes_path():
+ return os.path.join(os.path.dirname(__file__), "simple_scenes.py")
diff --git a/tests/test_scene_rendering/simple_scenes.py b/tests/test_scene_rendering/simple_scenes.py
new file mode 100644
index 000000000..1b65ea117
--- /dev/null
+++ b/tests/test_scene_rendering/simple_scenes.py
@@ -0,0 +1,8 @@
+from manim import *
+
+
+class SquareToCircle(Scene):
+ def construct(self):
+ square = Square()
+ circle = Circle()
+ self.play(Transform(square, circle))
diff --git a/tests/test_scene_rendering/standard_config.cfg b/tests/test_scene_rendering/standard_config.cfg
new file mode 100644
index 000000000..1329e9d10
--- /dev/null
+++ b/tests/test_scene_rendering/standard_config.cfg
@@ -0,0 +1,4 @@
+[CLI]
+frame_rate = 15
+pixel_height = 480
+pixel_width = 300
\ No newline at end of file
diff --git a/tests/test_scene_rendering/test_cli_flags.py b/tests/test_scene_rendering/test_cli_flags.py
new file mode 100644
index 000000000..3588a38be
--- /dev/null
+++ b/tests/test_scene_rendering/test_cli_flags.py
@@ -0,0 +1,46 @@
+import os
+import pytest
+import subprocess
+from manim import file_writer_config
+
+from ..utils.commands import capture
+from ..utils.video_tester import *
+
+
+@video_comparison(
+ "SquareToCircleWithDefaultValues.json",
+ "videos/simple_scenes/1080p60/SquareToCircle.mp4",
+)
+def test_basic_scene_with_default_values(tmp_path, manim_cfg_file, simple_scenes_path):
+ scene_name = "SquareToCircle"
+ command = [
+ "python",
+ "-m",
+ "manim",
+ simple_scenes_path,
+ scene_name,
+ "--media_dir",
+ str(tmp_path),
+ ]
+ out, err, exit_code = capture(command)
+ assert exit_code == 0, err
+
+
+@video_comparison(
+ "SquareToCircleWithlFlag.json", "videos/simple_scenes/480p15/SquareToCircle.mp4"
+)
+def test_basic_scene_l_flag(tmp_path, manim_cfg_file, simple_scenes_path):
+ scene_name = "SquareToCircle"
+ command = [
+ "python",
+ "-m",
+ "manim",
+ simple_scenes_path,
+ scene_name,
+ "-l",
+ "--media_dir",
+ str(tmp_path),
+ ]
+ out, err, exit_code = capture(command)
+ assert exit_code == 0, err
diff --git a/tests/test_writing.py b/tests/test_writing.py
deleted file mode 100644
index 5f9b9de57..000000000
--- a/tests/test_writing.py
+++ /dev/null
@@ -1,33 +0,0 @@
-from manim import *
-from testing_utils import utils_test_scenes, get_scenes_to_test
-
-
-# NOTE : All of these tests use cached data (in /test_cache)
-# Cache functionality is tested within test_CLI.
-
-
-class TextTest(Scene):
- def construct(self):
- t = Text("testing", font="Arial")
- self.play(Animation(t))
-
-
-class TextMobjectTest(Scene):
- def construct(self):
- constants.TEX_TEMPLATE = TexTemplate()
- t = TextMobject("Hello world !")
- self.play(Animation(t))
-
-
-class TexMobjectTest(Scene):
- def construct(self):
- # IMPORTANT NOTE : This won't test the abitilty of manim to write/cache latex.
- # i.e It will pass even if latex is not installed.
- # This is due to the fact that the latex used here has been cached (see test_cache directory)
- constants.TEX_TEMPLATE = TexTemplate()
- t = TexMobject("\\sum_{n=1}^\\infty " "\\frac{1}{n^2} = \\frac{\\pi^2}{6}")
- self.play(Animation(t))
-
-
-def test_scenes():
- utils_test_scenes(get_scenes_to_test(__name__), "writing", caching_needed=True)
diff --git a/tests/tests_cache/graph/NumberLineTest/Tex/06762b7d25a120c2.aux b/tests/tests_cache/graph/NumberLineTest/Tex/06762b7d25a120c2.aux
deleted file mode 100644
index f23e54680..000000000
--- a/tests/tests_cache/graph/NumberLineTest/Tex/06762b7d25a120c2.aux
+++ /dev/null
@@ -1 +0,0 @@
-\relax
diff --git a/tests/tests_cache/graph/NumberLineTest/Tex/06762b7d25a120c2.dvi b/tests/tests_cache/graph/NumberLineTest/Tex/06762b7d25a120c2.dvi
deleted file mode 100644
index 84f52ba8a..000000000
Binary files a/tests/tests_cache/graph/NumberLineTest/Tex/06762b7d25a120c2.dvi and /dev/null differ
diff --git a/tests/tests_cache/graph/NumberLineTest/Tex/06762b7d25a120c2.svg b/tests/tests_cache/graph/NumberLineTest/Tex/06762b7d25a120c2.svg
deleted file mode 100644
index 8af378d5d..000000000
--- a/tests/tests_cache/graph/NumberLineTest/Tex/06762b7d25a120c2.svg
+++ /dev/null
@@ -1,10 +0,0 @@
-<?xml version='1.0' encoding='UTF-8'?>
-<!-- This file was generated by dvisvgm 2.3.5 -->
-<svg height='6.420368pt' version='1.1' viewBox='169.364866 -6.420368 4.981339 6.420368' width='4.981339pt' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'>
-<defs>
-<path d='M1.265255 -0.767123L2.321295 -1.793275C3.875467 -3.16812 4.473225 -3.706102 4.473225 -4.702366C4.473225 -5.838107 3.576588 -6.635118 2.361146 -6.635118C1.235367 -6.635118 0.498132 -5.718555 0.498132 -4.83188C0.498132 -4.273973 0.996264 -4.273973 1.026152 -4.273973C1.195517 -4.273973 1.544209 -4.393524 1.544209 -4.801993C1.544209 -5.061021 1.364882 -5.32005 1.016189 -5.32005C0.936488 -5.32005 0.916563 -5.32005 0.886675 -5.310087C1.115816 -5.957659 1.653798 -6.326276 2.231631 -6.326276C3.138232 -6.326276 3.566625 -5.519303 3.566625 -4.702366C3.566625 -3.905355 3.068493 -3.118306 2.520548 -2.500623L0.607721 -0.368618C0.498132 -0.259029 0.498132 -0.239103 0.498132 0H4.194271L4.473225 -1.733499H4.224159C4.174346 -1.43462 4.104608 -0.996264 4.004981 -0.846824C3.935243 -0.767123 3.277709 -0.767123 3.058531 -0.767123H1.265255Z' id='g0-50'/>
-</defs>
-<g id='page1'>
-<use x='169.364866' xlink:href='#g0-50' y='0'/>
-</g>
-</svg>
\ No newline at end of file
diff --git a/tests/tests_cache/graph/NumberLineTest/Tex/06762b7d25a120c2.tex b/tests/tests_cache/graph/NumberLineTest/Tex/06762b7d25a120c2.tex
deleted file mode 100644
index d59a688da..000000000
--- a/tests/tests_cache/graph/NumberLineTest/Tex/06762b7d25a120c2.tex
+++ /dev/null
@@ -1,10 +0,0 @@
-\documentclass[preview]{standalone}\usepackage[english]{babel}\usepackage{amsmath}\usepackage{amssymb}\usepackage{dsfont}\usepackage{setspace}\usepackage{tipa}\usepackage{relsize}\usepackage{textcomp}\usepackage{mathrsfs}\usepackage{calligra}\usepackage{wasysym}\usepackage{ragged2e}\usepackage{physics}\usepackage{xcolor}\usepackage{microtype}\usepackage[utf8]{inputenc}\usepackage[T1]{fontenc}\linespread{1}
-\DisableLigatures{encoding = *, family = *}
-
-\begin{document}
-
-\begin{align*}
-2
-\end{align*}
-
-\end{document}
\ No newline at end of file
diff --git a/tests/tests_cache/graph/NumberLineTest/Tex/1200f80be4af0fe8.aux b/tests/tests_cache/graph/NumberLineTest/Tex/1200f80be4af0fe8.aux
deleted file mode 100644
index f23e54680..000000000
--- a/tests/tests_cache/graph/NumberLineTest/Tex/1200f80be4af0fe8.aux
+++ /dev/null
@@ -1 +0,0 @@
-\relax
diff --git a/tests/tests_cache/graph/NumberLineTest/Tex/1200f80be4af0fe8.dvi b/tests/tests_cache/graph/NumberLineTest/Tex/1200f80be4af0fe8.dvi
deleted file mode 100644
index fc4010fa9..000000000
Binary files a/tests/tests_cache/graph/NumberLineTest/Tex/1200f80be4af0fe8.dvi and /dev/null differ
diff --git a/tests/tests_cache/graph/NumberLineTest/Tex/1200f80be4af0fe8.svg b/tests/tests_cache/graph/NumberLineTest/Tex/1200f80be4af0fe8.svg
deleted file mode 100644
index df062f2f0..000000000
--- a/tests/tests_cache/graph/NumberLineTest/Tex/1200f80be4af0fe8.svg
+++ /dev/null
@@ -1,10 +0,0 @@
-<?xml version='1.0' encoding='UTF-8'?>
-<!-- This file was generated by dvisvgm 2.3.5 -->
-<svg height='6.22665pt' version='1.1' viewBox='169.234572 -4.289468 5.241955 6.22665' width='5.241955pt' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'>
-<defs>
-<path d='M4.841843 -3.795766C4.881694 -3.935243 4.881694 -3.955168 4.881694 -4.024907C4.881694 -4.204234 4.742217 -4.293898 4.592777 -4.293898C4.493151 -4.293898 4.333748 -4.234122 4.244085 -4.084682C4.224159 -4.034869 4.144458 -3.726027 4.104608 -3.5467C4.034869 -3.287671 3.965131 -3.01868 3.905355 -2.749689L3.457036 -0.956413C3.417186 -0.806974 2.988792 -0.109589 2.331258 -0.109589C1.823163 -0.109589 1.713574 -0.547945 1.713574 -0.916563C1.713574 -1.374844 1.882939 -1.992528 2.221669 -2.86924C2.381071 -3.277709 2.420922 -3.387298 2.420922 -3.58655C2.420922 -4.034869 2.102117 -4.403487 1.603985 -4.403487C0.657534 -4.403487 0.288917 -2.958904 0.288917 -2.86924C0.288917 -2.769614 0.388543 -2.769614 0.408468 -2.769614C0.508095 -2.769614 0.518057 -2.789539 0.56787 -2.948941C0.836862 -3.88543 1.235367 -4.184309 1.574097 -4.184309C1.653798 -4.184309 1.823163 -4.184309 1.823163 -3.865504C1.823163 -3.616438 1.723537 -3.35741 1.653798 -3.16812C1.255293 -2.11208 1.075965 -1.544209 1.075965 -1.075965C1.075965 -0.18929 1.703611 0.109589 2.291407 0.109589C2.67995 0.109589 3.01868 -0.059776 3.297634 -0.33873C3.16812 0.179328 3.048568 0.667497 2.650062 1.195517C2.391034 1.534247 2.012453 1.823163 1.554172 1.823163C1.414695 1.823163 0.966376 1.793275 0.797011 1.404732C0.956413 1.404732 1.085928 1.404732 1.225405 1.285181C1.325031 1.195517 1.424658 1.066002 1.424658 0.876712C1.424658 0.56787 1.155666 0.52802 1.05604 0.52802C0.826899 0.52802 0.498132 0.687422 0.498132 1.175592C0.498132 1.673724 0.936488 2.042341 1.554172 2.042341C2.580324 2.042341 3.606476 1.135741 3.88543 0.009963L4.841843 -3.795766Z' id='g0-121'/>
-</defs>
-<g id='page1'>
-<use x='169.234572' xlink:href='#g0-121' y='0'/>
-</g>
-</svg>
\ No newline at end of file
diff --git a/tests/tests_cache/graph/NumberLineTest/Tex/1200f80be4af0fe8.tex b/tests/tests_cache/graph/NumberLineTest/Tex/1200f80be4af0fe8.tex
deleted file mode 100644
index fa9d8ebbd..000000000
--- a/tests/tests_cache/graph/NumberLineTest/Tex/1200f80be4af0fe8.tex
+++ /dev/null
@@ -1,8 +0,0 @@
-\documentclass[preview]{standalone}\usepackage[english]{babel}\usepackage{amsmath}\usepackage{amssymb}\usepackage{dsfont}\usepackage{setspace}\usepackage{tipa}\usepackage{relsize}\usepackage{textcomp}\usepackage{mathrsfs}\usepackage{calligra}\usepackage{wasysym}\usepackage{ragged2e}\usepackage{physics}\usepackage{xcolor}\usepackage{microtype}\usepackage[utf8]{inputenc}\usepackage[T1]{fontenc}\linespread{1}
-\DisableLigatures{encoding = *, family = *}
-
-\begin{document}
-
-\centering $y$
-
-\end{document}
\ No newline at end of file
diff --git a/tests/tests_cache/graph/NumberLineTest/Tex/39b35afad20df986.aux b/tests/tests_cache/graph/NumberLineTest/Tex/39b35afad20df986.aux
deleted file mode 100644
index f23e54680..000000000
--- a/tests/tests_cache/graph/NumberLineTest/Tex/39b35afad20df986.aux
+++ /dev/null
@@ -1 +0,0 @@
-\relax
diff --git a/tests/tests_cache/graph/NumberLineTest/Tex/39b35afad20df986.dvi b/tests/tests_cache/graph/NumberLineTest/Tex/39b35afad20df986.dvi
deleted file mode 100644
index a60e4450f..000000000
Binary files a/tests/tests_cache/graph/NumberLineTest/Tex/39b35afad20df986.dvi and /dev/null differ
diff --git a/tests/tests_cache/graph/NumberLineTest/Tex/39b35afad20df986.svg b/tests/tests_cache/graph/NumberLineTest/Tex/39b35afad20df986.svg
deleted file mode 100644
index e47df64e9..000000000
--- a/tests/tests_cache/graph/NumberLineTest/Tex/39b35afad20df986.svg
+++ /dev/null
@@ -1,10 +0,0 @@
-<?xml version='1.0' encoding='UTF-8'?>
-<!-- This file was generated by dvisvgm 2.3.5 -->
-<svg height='6.22665pt' version='1.1' viewBox='0 -4.289468 5.241955 6.22665' width='5.241955pt' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'>
-<defs>
-<path d='M4.841843 -3.795766C4.881694 -3.935243 4.881694 -3.955168 4.881694 -4.024907C4.881694 -4.204234 4.742217 -4.293898 4.592777 -4.293898C4.493151 -4.293898 4.333748 -4.234122 4.244085 -4.084682C4.224159 -4.034869 4.144458 -3.726027 4.104608 -3.5467C4.034869 -3.287671 3.965131 -3.01868 3.905355 -2.749689L3.457036 -0.956413C3.417186 -0.806974 2.988792 -0.109589 2.331258 -0.109589C1.823163 -0.109589 1.713574 -0.547945 1.713574 -0.916563C1.713574 -1.374844 1.882939 -1.992528 2.221669 -2.86924C2.381071 -3.277709 2.420922 -3.387298 2.420922 -3.58655C2.420922 -4.034869 2.102117 -4.403487 1.603985 -4.403487C0.657534 -4.403487 0.288917 -2.958904 0.288917 -2.86924C0.288917 -2.769614 0.388543 -2.769614 0.408468 -2.769614C0.508095 -2.769614 0.518057 -2.789539 0.56787 -2.948941C0.836862 -3.88543 1.235367 -4.184309 1.574097 -4.184309C1.653798 -4.184309 1.823163 -4.184309 1.823163 -3.865504C1.823163 -3.616438 1.723537 -3.35741 1.653798 -3.16812C1.255293 -2.11208 1.075965 -1.544209 1.075965 -1.075965C1.075965 -0.18929 1.703611 0.109589 2.291407 0.109589C2.67995 0.109589 3.01868 -0.059776 3.297634 -0.33873C3.16812 0.179328 3.048568 0.667497 2.650062 1.195517C2.391034 1.534247 2.012453 1.823163 1.554172 1.823163C1.414695 1.823163 0.966376 1.793275 0.797011 1.404732C0.956413 1.404732 1.085928 1.404732 1.225405 1.285181C1.325031 1.195517 1.424658 1.066002 1.424658 0.876712C1.424658 0.56787 1.155666 0.52802 1.05604 0.52802C0.826899 0.52802 0.498132 0.687422 0.498132 1.175592C0.498132 1.673724 0.936488 2.042341 1.554172 2.042341C2.580324 2.042341 3.606476 1.135741 3.88543 0.009963L4.841843 -3.795766Z' id='g0-121'/>
-</defs>
-<g id='page1'>
-<use x='0' xlink:href='#g0-121' y='0'/>
-</g>
-</svg>
\ No newline at end of file
diff --git a/tests/tests_cache/graph/NumberLineTest/Tex/39b35afad20df986.tex b/tests/tests_cache/graph/NumberLineTest/Tex/39b35afad20df986.tex
deleted file mode 100644
index 1cda47097..000000000
--- a/tests/tests_cache/graph/NumberLineTest/Tex/39b35afad20df986.tex
+++ /dev/null
@@ -1,8 +0,0 @@
-\documentclass[preview]{standalone}\usepackage[english]{babel}\usepackage{amsmath}\usepackage{amssymb}\usepackage{dsfont}\usepackage{setspace}\usepackage{tipa}\usepackage{relsize}\usepackage{textcomp}\usepackage{mathrsfs}\usepackage{calligra}\usepackage{wasysym}\usepackage{ragged2e}\usepackage{physics}\usepackage{xcolor}\usepackage{microtype}\usepackage[utf8]{inputenc}\usepackage[T1]{fontenc}\linespread{1}
-\DisableLigatures{encoding = *, family = *}
-
-\begin{document}
-
-$y$
-
-\end{document}
\ No newline at end of file
diff --git a/tests/tests_cache/graph/NumberLineTest/Tex/3ee0bf2657c6caac.aux b/tests/tests_cache/graph/NumberLineTest/Tex/3ee0bf2657c6caac.aux
deleted file mode 100644
index f23e54680..000000000
--- a/tests/tests_cache/graph/NumberLineTest/Tex/3ee0bf2657c6caac.aux
+++ /dev/null
@@ -1 +0,0 @@
-\relax
diff --git a/tests/tests_cache/graph/NumberLineTest/Tex/3ee0bf2657c6caac.dvi b/tests/tests_cache/graph/NumberLineTest/Tex/3ee0bf2657c6caac.dvi
deleted file mode 100644
index 304c2ed7b..000000000
Binary files a/tests/tests_cache/graph/NumberLineTest/Tex/3ee0bf2657c6caac.dvi and /dev/null differ
diff --git a/tests/tests_cache/graph/NumberLineTest/Tex/3ee0bf2657c6caac.svg b/tests/tests_cache/graph/NumberLineTest/Tex/3ee0bf2657c6caac.svg
deleted file mode 100644
index ea34f6356..000000000
--- a/tests/tests_cache/graph/NumberLineTest/Tex/3ee0bf2657c6caac.svg
+++ /dev/null
@@ -1,10 +0,0 @@
-<?xml version='1.0' encoding='UTF-8'?>
-<!-- This file was generated by dvisvgm 2.3.5 -->
-<svg height='6.420368pt' version='1.1' viewBox='169.364866 -6.420368 4.981339 6.420368' width='4.981339pt' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'>
-<defs>
-<path d='M4.582814 -3.188045C4.582814 -3.985056 4.533001 -4.782067 4.184309 -5.519303C3.726027 -6.475716 2.909091 -6.635118 2.49066 -6.635118C1.892902 -6.635118 1.165629 -6.37609 0.757161 -5.449564C0.438356 -4.762142 0.388543 -3.985056 0.388543 -3.188045C0.388543 -2.440847 0.428394 -1.544209 0.836862 -0.787049C1.265255 0.019925 1.992528 0.219178 2.480697 0.219178C3.01868 0.219178 3.775841 0.009963 4.214197 -0.936488C4.533001 -1.62391 4.582814 -2.400996 4.582814 -3.188045ZM2.480697 0C2.092154 0 1.504359 -0.249066 1.325031 -1.205479C1.215442 -1.803238 1.215442 -2.719801 1.215442 -3.307597C1.215442 -3.945205 1.215442 -4.60274 1.295143 -5.140722C1.484433 -6.326276 2.231631 -6.41594 2.480697 -6.41594C2.809465 -6.41594 3.466999 -6.236613 3.656289 -5.250311C3.755915 -4.692403 3.755915 -3.935243 3.755915 -3.307597C3.755915 -2.560399 3.755915 -1.882939 3.646326 -1.24533C3.496887 -0.298879 2.929016 0 2.480697 0Z' id='g0-48'/>
-</defs>
-<g id='page1'>
-<use x='169.364866' xlink:href='#g0-48' y='0'/>
-</g>
-</svg>
\ No newline at end of file
diff --git a/tests/tests_cache/graph/NumberLineTest/Tex/3ee0bf2657c6caac.tex b/tests/tests_cache/graph/NumberLineTest/Tex/3ee0bf2657c6caac.tex
deleted file mode 100644
index e0855be0a..000000000
--- a/tests/tests_cache/graph/NumberLineTest/Tex/3ee0bf2657c6caac.tex
+++ /dev/null
@@ -1,10 +0,0 @@
-\documentclass[preview]{standalone}\usepackage[english]{babel}\usepackage{amsmath}\usepackage{amssymb}\usepackage{dsfont}\usepackage{setspace}\usepackage{tipa}\usepackage{relsize}\usepackage{textcomp}\usepackage{mathrsfs}\usepackage{calligra}\usepackage{wasysym}\usepackage{ragged2e}\usepackage{physics}\usepackage{xcolor}\usepackage{microtype}\usepackage[utf8]{inputenc}\usepackage[T1]{fontenc}\linespread{1}
-\DisableLigatures{encoding = *, family = *}
-
-\begin{document}
-
-\begin{align*}
-0
-\end{align*}
-
-\end{document}
\ No newline at end of file
diff --git a/tests/tests_cache/graph/NumberLineTest/Tex/875b86192b4861d3.aux b/tests/tests_cache/graph/NumberLineTest/Tex/875b86192b4861d3.aux
deleted file mode 100644
index f23e54680..000000000
--- a/tests/tests_cache/graph/NumberLineTest/Tex/875b86192b4861d3.aux
+++ /dev/null
@@ -1 +0,0 @@
-\relax
diff --git a/tests/tests_cache/graph/NumberLineTest/Tex/875b86192b4861d3.dvi b/tests/tests_cache/graph/NumberLineTest/Tex/875b86192b4861d3.dvi
deleted file mode 100644
index 7e5f268a9..000000000
Binary files a/tests/tests_cache/graph/NumberLineTest/Tex/875b86192b4861d3.dvi and /dev/null differ
diff --git a/tests/tests_cache/graph/NumberLineTest/Tex/875b86192b4861d3.svg b/tests/tests_cache/graph/NumberLineTest/Tex/875b86192b4861d3.svg
deleted file mode 100644
index 2bc85a93a..000000000
--- a/tests/tests_cache/graph/NumberLineTest/Tex/875b86192b4861d3.svg
+++ /dev/null
@@ -1,10 +0,0 @@
-<?xml version='1.0' encoding='UTF-8'?>
-<!-- This file was generated by dvisvgm 2.3.5 -->
-<svg height='6.420368pt' version='1.1' viewBox='169.364866 -6.420368 4.981339 6.420368' width='4.981339pt' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'>
-<defs>
-<path d='M2.929016 -6.37609C2.929016 -6.615193 2.929016 -6.635118 2.699875 -6.635118C2.082192 -5.997509 1.205479 -5.997509 0.886675 -5.997509V-5.688667C1.085928 -5.688667 1.673724 -5.688667 2.191781 -5.947696V-0.787049C2.191781 -0.428394 2.161893 -0.308842 1.265255 -0.308842H0.946451V0C1.295143 -0.029888 2.161893 -0.029888 2.560399 -0.029888S3.825654 -0.029888 4.174346 0V-0.308842H3.855542C2.958904 -0.308842 2.929016 -0.418431 2.929016 -0.787049V-6.37609Z' id='g0-49'/>
-</defs>
-<g id='page1'>
-<use x='169.364866' xlink:href='#g0-49' y='0'/>
-</g>
-</svg>
\ No newline at end of file
diff --git a/tests/tests_cache/graph/NumberLineTest/Tex/875b86192b4861d3.tex b/tests/tests_cache/graph/NumberLineTest/Tex/875b86192b4861d3.tex
deleted file mode 100644
index 3f1a7c7d9..000000000
--- a/tests/tests_cache/graph/NumberLineTest/Tex/875b86192b4861d3.tex
+++ /dev/null
@@ -1,10 +0,0 @@
-\documentclass[preview]{standalone}\usepackage[english]{babel}\usepackage{amsmath}\usepackage{amssymb}\usepackage{dsfont}\usepackage{setspace}\usepackage{tipa}\usepackage{relsize}\usepackage{textcomp}\usepackage{mathrsfs}\usepackage{calligra}\usepackage{wasysym}\usepackage{ragged2e}\usepackage{physics}\usepackage{xcolor}\usepackage{microtype}\usepackage[utf8]{inputenc}\usepackage[T1]{fontenc}\linespread{1}
-\DisableLigatures{encoding = *, family = *}
-
-\begin{document}
-
-\begin{align*}
-1
-\end{align*}
-
-\end{document}
\ No newline at end of file
diff --git a/tests/tests_cache/graph/NumberLineTest/Tex/c3991b8028e98252.aux b/tests/tests_cache/graph/NumberLineTest/Tex/c3991b8028e98252.aux
deleted file mode 100644
index f23e54680..000000000
--- a/tests/tests_cache/graph/NumberLineTest/Tex/c3991b8028e98252.aux
+++ /dev/null
@@ -1 +0,0 @@
-\relax
diff --git a/tests/tests_cache/graph/NumberLineTest/Tex/c3991b8028e98252.dvi b/tests/tests_cache/graph/NumberLineTest/Tex/c3991b8028e98252.dvi
deleted file mode 100644
index 43c3a678b..000000000
Binary files a/tests/tests_cache/graph/NumberLineTest/Tex/c3991b8028e98252.dvi and /dev/null differ
diff --git a/tests/tests_cache/graph/NumberLineTest/Tex/c3991b8028e98252.svg b/tests/tests_cache/graph/NumberLineTest/Tex/c3991b8028e98252.svg
deleted file mode 100644
index eebdd49a7..000000000
--- a/tests/tests_cache/graph/NumberLineTest/Tex/c3991b8028e98252.svg
+++ /dev/null
@@ -1,10 +0,0 @@
-<?xml version='1.0' encoding='UTF-8'?>
-<!-- This file was generated by dvisvgm 2.3.5 -->
-<svg height='6.641773pt' version='1.1' viewBox='167.98117 -5.811546 7.748748 6.641773' width='7.748748pt' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'>
-<defs>
-<path d='M6.56538 -2.291407C6.734745 -2.291407 6.914072 -2.291407 6.914072 -2.49066S6.734745 -2.689913 6.56538 -2.689913H1.175592C1.006227 -2.689913 0.826899 -2.689913 0.826899 -2.49066S1.006227 -2.291407 1.175592 -2.291407H6.56538Z' id='g0-0'/>
-</defs>
-<g id='page1'>
-<use x='167.98117' xlink:href='#g0-0' y='0'/>
-</g>
-</svg>
\ No newline at end of file
diff --git a/tests/tests_cache/graph/NumberLineTest/Tex/c3991b8028e98252.tex b/tests/tests_cache/graph/NumberLineTest/Tex/c3991b8028e98252.tex
deleted file mode 100644
index 93398de6d..000000000
--- a/tests/tests_cache/graph/NumberLineTest/Tex/c3991b8028e98252.tex
+++ /dev/null
@@ -1,10 +0,0 @@
-\documentclass[preview]{standalone}\usepackage[english]{babel}\usepackage{amsmath}\usepackage{amssymb}\usepackage{dsfont}\usepackage{setspace}\usepackage{tipa}\usepackage{relsize}\usepackage{textcomp}\usepackage{mathrsfs}\usepackage{calligra}\usepackage{wasysym}\usepackage{ragged2e}\usepackage{physics}\usepackage{xcolor}\usepackage{microtype}\usepackage[utf8]{inputenc}\usepackage[T1]{fontenc}\linespread{1}
-\DisableLigatures{encoding = *, family = *}
-
-\begin{document}
-
-\begin{align*}
--
-\end{align*}
-
-\end{document}
\ No newline at end of file
diff --git a/tests/tests_cache/graph/NumberLineTest/Tex/c89fcd2b00c75d13.aux b/tests/tests_cache/graph/NumberLineTest/Tex/c89fcd2b00c75d13.aux
deleted file mode 100644
index f23e54680..000000000
--- a/tests/tests_cache/graph/NumberLineTest/Tex/c89fcd2b00c75d13.aux
+++ /dev/null
@@ -1 +0,0 @@
-\relax
diff --git a/tests/tests_cache/graph/NumberLineTest/Tex/c89fcd2b00c75d13.dvi b/tests/tests_cache/graph/NumberLineTest/Tex/c89fcd2b00c75d13.dvi
deleted file mode 100644
index 6f3ef454d..000000000
Binary files a/tests/tests_cache/graph/NumberLineTest/Tex/c89fcd2b00c75d13.dvi and /dev/null differ
diff --git a/tests/tests_cache/graph/NumberLineTest/Tex/c89fcd2b00c75d13.svg b/tests/tests_cache/graph/NumberLineTest/Tex/c89fcd2b00c75d13.svg
deleted file mode 100644
index a576f5e9a..000000000
--- a/tests/tests_cache/graph/NumberLineTest/Tex/c89fcd2b00c75d13.svg
+++ /dev/null
@@ -1,10 +0,0 @@
-<?xml version='1.0' encoding='UTF-8'?>
-<!-- This file was generated by dvisvgm 2.3.5 -->
-<svg height='6.420368pt' version='1.1' viewBox='169.364866 -6.420368 4.981339 6.420368' width='4.981339pt' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'>
-<defs>
-<path d='M1.315068 -3.267746V-3.506849C1.315068 -6.027397 2.550436 -6.386052 3.058531 -6.386052C3.297634 -6.386052 3.716065 -6.326276 3.935243 -5.987547C3.785803 -5.987547 3.387298 -5.987547 3.387298 -5.539228C3.387298 -5.230386 3.626401 -5.080946 3.845579 -5.080946C4.004981 -5.080946 4.303861 -5.17061 4.303861 -5.559153C4.303861 -6.156912 3.865504 -6.635118 3.038605 -6.635118C1.763387 -6.635118 0.418431 -5.349938 0.418431 -3.148194C0.418431 -0.488169 1.574097 0.219178 2.500623 0.219178C3.606476 0.219178 4.552927 -0.71731 4.552927 -2.032379C4.552927 -3.297634 3.666252 -4.254047 2.560399 -4.254047C1.882939 -4.254047 1.514321 -3.745953 1.315068 -3.267746ZM2.500623 -0.059776C1.872976 -0.059776 1.574097 -0.657534 1.514321 -0.806974C1.334994 -1.275218 1.334994 -2.072229 1.334994 -2.251557C1.334994 -3.028643 1.653798 -4.024907 2.550436 -4.024907C2.709838 -4.024907 3.16812 -4.024907 3.476961 -3.407223C3.656289 -3.038605 3.656289 -2.530511 3.656289 -2.042341C3.656289 -1.564134 3.656289 -1.066002 3.486924 -0.707347C3.188045 -0.109589 2.729763 -0.059776 2.500623 -0.059776Z' id='g0-54'/>
-</defs>
-<g id='page1'>
-<use x='169.364866' xlink:href='#g0-54' y='0'/>
-</g>
-</svg>
\ No newline at end of file
diff --git a/tests/tests_cache/graph/NumberLineTest/Tex/c89fcd2b00c75d13.tex b/tests/tests_cache/graph/NumberLineTest/Tex/c89fcd2b00c75d13.tex
deleted file mode 100644
index 5536d3ffc..000000000
--- a/tests/tests_cache/graph/NumberLineTest/Tex/c89fcd2b00c75d13.tex
+++ /dev/null
@@ -1,10 +0,0 @@
-\documentclass[preview]{standalone}\usepackage[english]{babel}\usepackage{amsmath}\usepackage{amssymb}\usepackage{dsfont}\usepackage{setspace}\usepackage{tipa}\usepackage{relsize}\usepackage{textcomp}\usepackage{mathrsfs}\usepackage{calligra}\usepackage{wasysym}\usepackage{ragged2e}\usepackage{physics}\usepackage{xcolor}\usepackage{microtype}\usepackage[utf8]{inputenc}\usepackage[T1]{fontenc}\linespread{1}
-\DisableLigatures{encoding = *, family = *}
-
-\begin{document}
-
-\begin{align*}
-6
-\end{align*}
-
-\end{document}
\ No newline at end of file
diff --git a/tests/tests_cache/graph/NumberLineTest/Tex/cfabdf460253a9af.aux b/tests/tests_cache/graph/NumberLineTest/Tex/cfabdf460253a9af.aux
deleted file mode 100644
index f23e54680..000000000
--- a/tests/tests_cache/graph/NumberLineTest/Tex/cfabdf460253a9af.aux
+++ /dev/null
@@ -1 +0,0 @@
-\relax
diff --git a/tests/tests_cache/graph/NumberLineTest/Tex/cfabdf460253a9af.dvi b/tests/tests_cache/graph/NumberLineTest/Tex/cfabdf460253a9af.dvi
deleted file mode 100644
index 7fb7939dd..000000000
Binary files a/tests/tests_cache/graph/NumberLineTest/Tex/cfabdf460253a9af.dvi and /dev/null differ
diff --git a/tests/tests_cache/graph/NumberLineTest/Tex/cfabdf460253a9af.svg b/tests/tests_cache/graph/NumberLineTest/Tex/cfabdf460253a9af.svg
deleted file mode 100644
index ec605f861..000000000
--- a/tests/tests_cache/graph/NumberLineTest/Tex/cfabdf460253a9af.svg
+++ /dev/null
@@ -1,10 +0,0 @@
-<?xml version='1.0' encoding='UTF-8'?>
-<!-- This file was generated by dvisvgm 2.3.5 -->
-<svg height='4.289468pt' version='1.1' viewBox='0 -4.289468 5.693932 4.289468' width='5.693932pt' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'>
-<defs>
-<path d='M3.327522 -3.008717C3.387298 -3.267746 3.616438 -4.184309 4.313823 -4.184309C4.363636 -4.184309 4.60274 -4.184309 4.811955 -4.054795C4.533001 -4.004981 4.333748 -3.755915 4.333748 -3.516812C4.333748 -3.35741 4.443337 -3.16812 4.712329 -3.16812C4.931507 -3.16812 5.250311 -3.347447 5.250311 -3.745953C5.250311 -4.26401 4.662516 -4.403487 4.323786 -4.403487C3.745953 -4.403487 3.39726 -3.875467 3.277709 -3.646326C3.028643 -4.303861 2.49066 -4.403487 2.201743 -4.403487C1.165629 -4.403487 0.597758 -3.118306 0.597758 -2.86924C0.597758 -2.769614 0.697385 -2.769614 0.71731 -2.769614C0.797011 -2.769614 0.826899 -2.789539 0.846824 -2.879203C1.185554 -3.935243 1.843088 -4.184309 2.181818 -4.184309C2.371108 -4.184309 2.719801 -4.094645 2.719801 -3.516812C2.719801 -3.20797 2.550436 -2.540473 2.181818 -1.145704C2.022416 -0.52802 1.673724 -0.109589 1.235367 -0.109589C1.175592 -0.109589 0.946451 -0.109589 0.737235 -0.239103C0.986301 -0.288917 1.205479 -0.498132 1.205479 -0.777086C1.205479 -1.046077 0.986301 -1.125778 0.836862 -1.125778C0.537983 -1.125778 0.288917 -0.86675 0.288917 -0.547945C0.288917 -0.089664 0.787049 0.109589 1.225405 0.109589C1.882939 0.109589 2.241594 -0.587796 2.271482 -0.647572C2.391034 -0.278954 2.749689 0.109589 3.347447 0.109589C4.373599 0.109589 4.941469 -1.175592 4.941469 -1.424658C4.941469 -1.524284 4.851806 -1.524284 4.821918 -1.524284C4.732254 -1.524284 4.712329 -1.484433 4.692403 -1.414695C4.363636 -0.348692 3.686177 -0.109589 3.367372 -0.109589C2.978829 -0.109589 2.819427 -0.428394 2.819427 -0.767123C2.819427 -0.986301 2.879203 -1.205479 2.988792 -1.643836L3.327522 -3.008717Z' id='g0-120'/>
-</defs>
-<g id='page1'>
-<use x='0' xlink:href='#g0-120' y='0'/>
-</g>
-</svg>
\ No newline at end of file
diff --git a/tests/tests_cache/graph/NumberLineTest/Tex/cfabdf460253a9af.tex b/tests/tests_cache/graph/NumberLineTest/Tex/cfabdf460253a9af.tex
deleted file mode 100644
index 3d7f7ed9f..000000000
--- a/tests/tests_cache/graph/NumberLineTest/Tex/cfabdf460253a9af.tex
+++ /dev/null
@@ -1,8 +0,0 @@
-\documentclass[preview]{standalone}\usepackage[english]{babel}\usepackage{amsmath}\usepackage{amssymb}\usepackage{dsfont}\usepackage{setspace}\usepackage{tipa}\usepackage{relsize}\usepackage{textcomp}\usepackage{mathrsfs}\usepackage{calligra}\usepackage{wasysym}\usepackage{ragged2e}\usepackage{physics}\usepackage{xcolor}\usepackage{microtype}\usepackage[utf8]{inputenc}\usepackage[T1]{fontenc}\linespread{1}
-\DisableLigatures{encoding = *, family = *}
-
-\begin{document}
-
-$x$
-
-\end{document}
\ No newline at end of file
diff --git a/tests/tests_cache/graph/NumberLineTest/Tex/dc2f4db242b10054.aux b/tests/tests_cache/graph/NumberLineTest/Tex/dc2f4db242b10054.aux
deleted file mode 100644
index f23e54680..000000000
--- a/tests/tests_cache/graph/NumberLineTest/Tex/dc2f4db242b10054.aux
+++ /dev/null
@@ -1 +0,0 @@
-\relax
diff --git a/tests/tests_cache/graph/NumberLineTest/Tex/dc2f4db242b10054.dvi b/tests/tests_cache/graph/NumberLineTest/Tex/dc2f4db242b10054.dvi
deleted file mode 100644
index 9d13bbb4c..000000000
Binary files a/tests/tests_cache/graph/NumberLineTest/Tex/dc2f4db242b10054.dvi and /dev/null differ
diff --git a/tests/tests_cache/graph/NumberLineTest/Tex/dc2f4db242b10054.svg b/tests/tests_cache/graph/NumberLineTest/Tex/dc2f4db242b10054.svg
deleted file mode 100644
index e8f32cd3a..000000000
--- a/tests/tests_cache/graph/NumberLineTest/Tex/dc2f4db242b10054.svg
+++ /dev/null
@@ -1,10 +0,0 @@
-<?xml version='1.0' encoding='UTF-8'?>
-<!-- This file was generated by dvisvgm 2.3.5 -->
-<svg height='1.051612pt' version='1.1' viewBox='170.47183 -1.051612 2.767408 1.051612' width='2.767408pt' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'>
-<defs>
-<path d='M1.912827 -0.52802C1.912827 -0.816936 1.673724 -1.05604 1.384807 -1.05604S0.856787 -0.816936 0.856787 -0.52802S1.09589 0 1.384807 0S1.912827 -0.239103 1.912827 -0.52802Z' id='g0-58'/>
-</defs>
-<g id='page1'>
-<use x='170.47183' xlink:href='#g0-58' y='0'/>
-</g>
-</svg>
\ No newline at end of file
diff --git a/tests/tests_cache/graph/NumberLineTest/Tex/dc2f4db242b10054.tex b/tests/tests_cache/graph/NumberLineTest/Tex/dc2f4db242b10054.tex
deleted file mode 100644
index a68b0e0d8..000000000
--- a/tests/tests_cache/graph/NumberLineTest/Tex/dc2f4db242b10054.tex
+++ /dev/null
@@ -1,10 +0,0 @@
-\documentclass[preview]{standalone}\usepackage[english]{babel}\usepackage{amsmath}\usepackage{amssymb}\usepackage{dsfont}\usepackage{setspace}\usepackage{tipa}\usepackage{relsize}\usepackage{textcomp}\usepackage{mathrsfs}\usepackage{calligra}\usepackage{wasysym}\usepackage{ragged2e}\usepackage{physics}\usepackage{xcolor}\usepackage{microtype}\usepackage[utf8]{inputenc}\usepackage[T1]{fontenc}\linespread{1}
-\DisableLigatures{encoding = *, family = *}
-
-\begin{document}
-
-\begin{align*}
-.
-\end{align*}
-
-\end{document}
\ No newline at end of file
diff --git a/tests/tests_cache/graph/NumberLineTest/Tex/dc8a033476053d80.aux b/tests/tests_cache/graph/NumberLineTest/Tex/dc8a033476053d80.aux
deleted file mode 100644
index f23e54680..000000000
--- a/tests/tests_cache/graph/NumberLineTest/Tex/dc8a033476053d80.aux
+++ /dev/null
@@ -1 +0,0 @@
-\relax
diff --git a/tests/tests_cache/graph/NumberLineTest/Tex/dc8a033476053d80.dvi b/tests/tests_cache/graph/NumberLineTest/Tex/dc8a033476053d80.dvi
deleted file mode 100644
index d9bb76979..000000000
Binary files a/tests/tests_cache/graph/NumberLineTest/Tex/dc8a033476053d80.dvi and /dev/null differ
diff --git a/tests/tests_cache/graph/NumberLineTest/Tex/dc8a033476053d80.svg b/tests/tests_cache/graph/NumberLineTest/Tex/dc8a033476053d80.svg
deleted file mode 100644
index 048976fba..000000000
--- a/tests/tests_cache/graph/NumberLineTest/Tex/dc8a033476053d80.svg
+++ /dev/null
@@ -1,10 +0,0 @@
-<?xml version='1.0' encoding='UTF-8'?>
-<!-- This file was generated by dvisvgm 2.3.5 -->
-<svg height='6.420368pt' version='1.1' viewBox='169.364866 -6.420368 4.981339 6.420368' width='4.981339pt' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'>
-<defs>
-<path d='M1.62391 -4.552927C1.165629 -4.851806 1.125778 -5.190535 1.125778 -5.3599C1.125778 -5.967621 1.77335 -6.386052 2.480697 -6.386052C3.20797 -6.386052 3.845579 -5.867995 3.845579 -5.150685C3.845579 -4.582814 3.457036 -4.104608 2.859278 -3.755915L1.62391 -4.552927ZM3.078456 -3.606476C3.795766 -3.975093 4.283935 -4.493151 4.283935 -5.150685C4.283935 -6.067248 3.39726 -6.635118 2.49066 -6.635118C1.494396 -6.635118 0.687422 -5.897883 0.687422 -4.971357C0.687422 -4.79203 0.707347 -4.343711 1.125778 -3.875467C1.235367 -3.755915 1.603985 -3.506849 1.853051 -3.337484C1.275218 -3.048568 0.418431 -2.49066 0.418431 -1.504359C0.418431 -0.448319 1.43462 0.219178 2.480697 0.219178C3.606476 0.219178 4.552927 -0.607721 4.552927 -1.673724C4.552927 -2.032379 4.443337 -2.480697 4.064757 -2.899128C3.875467 -3.108344 3.716065 -3.20797 3.078456 -3.606476ZM2.082192 -3.188045L3.307597 -2.410959C3.58655 -2.221669 4.054795 -1.92279 4.054795 -1.315068C4.054795 -0.577833 3.307597 -0.059776 2.49066 -0.059776C1.633873 -0.059776 0.916563 -0.67746 0.916563 -1.504359C0.916563 -2.082192 1.235367 -2.719801 2.082192 -3.188045Z' id='g0-56'/>
-</defs>
-<g id='page1'>
-<use x='169.364866' xlink:href='#g0-56' y='0'/>
-</g>
-</svg>
\ No newline at end of file
diff --git a/tests/tests_cache/graph/NumberLineTest/Tex/dc8a033476053d80.tex b/tests/tests_cache/graph/NumberLineTest/Tex/dc8a033476053d80.tex
deleted file mode 100644
index 72cc03fc9..000000000
--- a/tests/tests_cache/graph/NumberLineTest/Tex/dc8a033476053d80.tex
+++ /dev/null
@@ -1,10 +0,0 @@
-\documentclass[preview]{standalone}\usepackage[english]{babel}\usepackage{amsmath}\usepackage{amssymb}\usepackage{dsfont}\usepackage{setspace}\usepackage{tipa}\usepackage{relsize}\usepackage{textcomp}\usepackage{mathrsfs}\usepackage{calligra}\usepackage{wasysym}\usepackage{ragged2e}\usepackage{physics}\usepackage{xcolor}\usepackage{microtype}\usepackage[utf8]{inputenc}\usepackage[T1]{fontenc}\linespread{1}
-\DisableLigatures{encoding = *, family = *}
-
-\begin{document}
-
-\begin{align*}
-8
-\end{align*}
-
-\end{document}
\ No newline at end of file
diff --git a/tests/tests_cache/graph/NumberLineTest/Tex/e5e103db57904bc6.aux b/tests/tests_cache/graph/NumberLineTest/Tex/e5e103db57904bc6.aux
deleted file mode 100644
index f23e54680..000000000
--- a/tests/tests_cache/graph/NumberLineTest/Tex/e5e103db57904bc6.aux
+++ /dev/null
@@ -1 +0,0 @@
-\relax
diff --git a/tests/tests_cache/graph/NumberLineTest/Tex/e5e103db57904bc6.dvi b/tests/tests_cache/graph/NumberLineTest/Tex/e5e103db57904bc6.dvi
deleted file mode 100644
index c276f88da..000000000
Binary files a/tests/tests_cache/graph/NumberLineTest/Tex/e5e103db57904bc6.dvi and /dev/null differ
diff --git a/tests/tests_cache/graph/NumberLineTest/Tex/e5e103db57904bc6.svg b/tests/tests_cache/graph/NumberLineTest/Tex/e5e103db57904bc6.svg
deleted file mode 100644
index 56a1729a3..000000000
--- a/tests/tests_cache/graph/NumberLineTest/Tex/e5e103db57904bc6.svg
+++ /dev/null
@@ -1,10 +0,0 @@
-<?xml version='1.0' encoding='UTF-8'?>
-<!-- This file was generated by dvisvgm 2.3.5 -->
-<svg height='6.420368pt' version='1.1' viewBox='169.364866 -6.420368 4.981339 6.420368' width='4.981339pt' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'>
-<defs>
-<path d='M2.929016 -1.643836V-0.777086C2.929016 -0.418431 2.909091 -0.308842 2.171856 -0.308842H1.96264V0C2.371108 -0.029888 2.889166 -0.029888 3.307597 -0.029888S4.254047 -0.029888 4.662516 0V-0.308842H4.4533C3.716065 -0.308842 3.696139 -0.418431 3.696139 -0.777086V-1.643836H4.692403V-1.952677H3.696139V-6.485679C3.696139 -6.684932 3.696139 -6.744707 3.536737 -6.744707C3.447073 -6.744707 3.417186 -6.744707 3.337484 -6.625156L0.278954 -1.952677V-1.643836H2.929016ZM2.988792 -1.952677H0.557908L2.988792 -5.668742V-1.952677Z' id='g0-52'/>
-</defs>
-<g id='page1'>
-<use x='169.364866' xlink:href='#g0-52' y='0'/>
-</g>
-</svg>
\ No newline at end of file
diff --git a/tests/tests_cache/graph/NumberLineTest/Tex/e5e103db57904bc6.tex b/tests/tests_cache/graph/NumberLineTest/Tex/e5e103db57904bc6.tex
deleted file mode 100644
index 5f3216f10..000000000
--- a/tests/tests_cache/graph/NumberLineTest/Tex/e5e103db57904bc6.tex
+++ /dev/null
@@ -1,10 +0,0 @@
-\documentclass[preview]{standalone}\usepackage[english]{babel}\usepackage{amsmath}\usepackage{amssymb}\usepackage{dsfont}\usepackage{setspace}\usepackage{tipa}\usepackage{relsize}\usepackage{textcomp}\usepackage{mathrsfs}\usepackage{calligra}\usepackage{wasysym}\usepackage{ragged2e}\usepackage{physics}\usepackage{xcolor}\usepackage{microtype}\usepackage[utf8]{inputenc}\usepackage[T1]{fontenc}\linespread{1}
-\DisableLigatures{encoding = *, family = *}
-
-\begin{document}
-
-\begin{align*}
-4
-\end{align*}
-
-\end{document}
\ No newline at end of file
diff --git a/tests/tests_cache/graph/NumberLineTest/Tex/fe636a0e3b18960b.aux b/tests/tests_cache/graph/NumberLineTest/Tex/fe636a0e3b18960b.aux
deleted file mode 100644
index f23e54680..000000000
--- a/tests/tests_cache/graph/NumberLineTest/Tex/fe636a0e3b18960b.aux
+++ /dev/null
@@ -1 +0,0 @@
-\relax
diff --git a/tests/tests_cache/graph/NumberLineTest/Tex/fe636a0e3b18960b.dvi b/tests/tests_cache/graph/NumberLineTest/Tex/fe636a0e3b18960b.dvi
deleted file mode 100644
index 808d3b17e..000000000
Binary files a/tests/tests_cache/graph/NumberLineTest/Tex/fe636a0e3b18960b.dvi and /dev/null differ
diff --git a/tests/tests_cache/graph/NumberLineTest/Tex/fe636a0e3b18960b.svg b/tests/tests_cache/graph/NumberLineTest/Tex/fe636a0e3b18960b.svg
deleted file mode 100644
index 4eabd7bc0..000000000
--- a/tests/tests_cache/graph/NumberLineTest/Tex/fe636a0e3b18960b.svg
+++ /dev/null
@@ -1,10 +0,0 @@
-<?xml version='1.0' encoding='UTF-8'?>
-<!-- This file was generated by dvisvgm 2.3.5 -->
-<svg height='4.289468pt' version='1.1' viewBox='169.008582 -4.289468 5.693932 4.289468' width='5.693932pt' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'>
-<defs>
-<path d='M3.327522 -3.008717C3.387298 -3.267746 3.616438 -4.184309 4.313823 -4.184309C4.363636 -4.184309 4.60274 -4.184309 4.811955 -4.054795C4.533001 -4.004981 4.333748 -3.755915 4.333748 -3.516812C4.333748 -3.35741 4.443337 -3.16812 4.712329 -3.16812C4.931507 -3.16812 5.250311 -3.347447 5.250311 -3.745953C5.250311 -4.26401 4.662516 -4.403487 4.323786 -4.403487C3.745953 -4.403487 3.39726 -3.875467 3.277709 -3.646326C3.028643 -4.303861 2.49066 -4.403487 2.201743 -4.403487C1.165629 -4.403487 0.597758 -3.118306 0.597758 -2.86924C0.597758 -2.769614 0.697385 -2.769614 0.71731 -2.769614C0.797011 -2.769614 0.826899 -2.789539 0.846824 -2.879203C1.185554 -3.935243 1.843088 -4.184309 2.181818 -4.184309C2.371108 -4.184309 2.719801 -4.094645 2.719801 -3.516812C2.719801 -3.20797 2.550436 -2.540473 2.181818 -1.145704C2.022416 -0.52802 1.673724 -0.109589 1.235367 -0.109589C1.175592 -0.109589 0.946451 -0.109589 0.737235 -0.239103C0.986301 -0.288917 1.205479 -0.498132 1.205479 -0.777086C1.205479 -1.046077 0.986301 -1.125778 0.836862 -1.125778C0.537983 -1.125778 0.288917 -0.86675 0.288917 -0.547945C0.288917 -0.089664 0.787049 0.109589 1.225405 0.109589C1.882939 0.109589 2.241594 -0.587796 2.271482 -0.647572C2.391034 -0.278954 2.749689 0.109589 3.347447 0.109589C4.373599 0.109589 4.941469 -1.175592 4.941469 -1.424658C4.941469 -1.524284 4.851806 -1.524284 4.821918 -1.524284C4.732254 -1.524284 4.712329 -1.484433 4.692403 -1.414695C4.363636 -0.348692 3.686177 -0.109589 3.367372 -0.109589C2.978829 -0.109589 2.819427 -0.428394 2.819427 -0.767123C2.819427 -0.986301 2.879203 -1.205479 2.988792 -1.643836L3.327522 -3.008717Z' id='g0-120'/>
-</defs>
-<g id='page1'>
-<use x='169.008582' xlink:href='#g0-120' y='0'/>
-</g>
-</svg>
\ No newline at end of file
diff --git a/tests/tests_cache/graph/NumberLineTest/Tex/fe636a0e3b18960b.tex b/tests/tests_cache/graph/NumberLineTest/Tex/fe636a0e3b18960b.tex
deleted file mode 100644
index 523a7ab26..000000000
--- a/tests/tests_cache/graph/NumberLineTest/Tex/fe636a0e3b18960b.tex
+++ /dev/null
@@ -1,8 +0,0 @@
-\documentclass[preview]{standalone}\usepackage[english]{babel}\usepackage{amsmath}\usepackage{amssymb}\usepackage{dsfont}\usepackage{setspace}\usepackage{tipa}\usepackage{relsize}\usepackage{textcomp}\usepackage{mathrsfs}\usepackage{calligra}\usepackage{wasysym}\usepackage{ragged2e}\usepackage{physics}\usepackage{xcolor}\usepackage{microtype}\usepackage[utf8]{inputenc}\usepackage[T1]{fontenc}\linespread{1}
-\DisableLigatures{encoding = *, family = *}
-
-\begin{document}
-
-\centering $x$
-
-\end{document}
\ No newline at end of file
diff --git a/tests/tests_cache/graph/PlotFunctionsTest/Tex/06762b7d25a120c2.aux b/tests/tests_cache/graph/PlotFunctionsTest/Tex/06762b7d25a120c2.aux
deleted file mode 100644
index f23e54680..000000000
--- a/tests/tests_cache/graph/PlotFunctionsTest/Tex/06762b7d25a120c2.aux
+++ /dev/null
@@ -1 +0,0 @@
-\relax
diff --git a/tests/tests_cache/graph/PlotFunctionsTest/Tex/06762b7d25a120c2.dvi b/tests/tests_cache/graph/PlotFunctionsTest/Tex/06762b7d25a120c2.dvi
deleted file mode 100644
index 5a025e9fa..000000000
Binary files a/tests/tests_cache/graph/PlotFunctionsTest/Tex/06762b7d25a120c2.dvi and /dev/null differ
diff --git a/tests/tests_cache/graph/PlotFunctionsTest/Tex/06762b7d25a120c2.svg b/tests/tests_cache/graph/PlotFunctionsTest/Tex/06762b7d25a120c2.svg
deleted file mode 100644
index 8af378d5d..000000000
--- a/tests/tests_cache/graph/PlotFunctionsTest/Tex/06762b7d25a120c2.svg
+++ /dev/null
@@ -1,10 +0,0 @@
-<?xml version='1.0' encoding='UTF-8'?>
-<!-- This file was generated by dvisvgm 2.3.5 -->
-<svg height='6.420368pt' version='1.1' viewBox='169.364866 -6.420368 4.981339 6.420368' width='4.981339pt' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'>
-<defs>
-<path d='M1.265255 -0.767123L2.321295 -1.793275C3.875467 -3.16812 4.473225 -3.706102 4.473225 -4.702366C4.473225 -5.838107 3.576588 -6.635118 2.361146 -6.635118C1.235367 -6.635118 0.498132 -5.718555 0.498132 -4.83188C0.498132 -4.273973 0.996264 -4.273973 1.026152 -4.273973C1.195517 -4.273973 1.544209 -4.393524 1.544209 -4.801993C1.544209 -5.061021 1.364882 -5.32005 1.016189 -5.32005C0.936488 -5.32005 0.916563 -5.32005 0.886675 -5.310087C1.115816 -5.957659 1.653798 -6.326276 2.231631 -6.326276C3.138232 -6.326276 3.566625 -5.519303 3.566625 -4.702366C3.566625 -3.905355 3.068493 -3.118306 2.520548 -2.500623L0.607721 -0.368618C0.498132 -0.259029 0.498132 -0.239103 0.498132 0H4.194271L4.473225 -1.733499H4.224159C4.174346 -1.43462 4.104608 -0.996264 4.004981 -0.846824C3.935243 -0.767123 3.277709 -0.767123 3.058531 -0.767123H1.265255Z' id='g0-50'/>
-</defs>
-<g id='page1'>
-<use x='169.364866' xlink:href='#g0-50' y='0'/>
-</g>
-</svg>
\ No newline at end of file
diff --git a/tests/tests_cache/graph/PlotFunctionsTest/Tex/06762b7d25a120c2.tex b/tests/tests_cache/graph/PlotFunctionsTest/Tex/06762b7d25a120c2.tex
deleted file mode 100644
index d59a688da..000000000
--- a/tests/tests_cache/graph/PlotFunctionsTest/Tex/06762b7d25a120c2.tex
+++ /dev/null
@@ -1,10 +0,0 @@
-\documentclass[preview]{standalone}\usepackage[english]{babel}\usepackage{amsmath}\usepackage{amssymb}\usepackage{dsfont}\usepackage{setspace}\usepackage{tipa}\usepackage{relsize}\usepackage{textcomp}\usepackage{mathrsfs}\usepackage{calligra}\usepackage{wasysym}\usepackage{ragged2e}\usepackage{physics}\usepackage{xcolor}\usepackage{microtype}\usepackage[utf8]{inputenc}\usepackage[T1]{fontenc}\linespread{1}
-\DisableLigatures{encoding = *, family = *}
-
-\begin{document}
-
-\begin{align*}
-2
-\end{align*}
-
-\end{document}
\ No newline at end of file
diff --git a/tests/tests_cache/graph/PlotFunctionsTest/Tex/1200f80be4af0fe8.aux b/tests/tests_cache/graph/PlotFunctionsTest/Tex/1200f80be4af0fe8.aux
deleted file mode 100644
index f23e54680..000000000
--- a/tests/tests_cache/graph/PlotFunctionsTest/Tex/1200f80be4af0fe8.aux
+++ /dev/null
@@ -1 +0,0 @@
-\relax
diff --git a/tests/tests_cache/graph/PlotFunctionsTest/Tex/1200f80be4af0fe8.dvi b/tests/tests_cache/graph/PlotFunctionsTest/Tex/1200f80be4af0fe8.dvi
deleted file mode 100644
index 9a929e3a1..000000000
Binary files a/tests/tests_cache/graph/PlotFunctionsTest/Tex/1200f80be4af0fe8.dvi and /dev/null differ
diff --git a/tests/tests_cache/graph/PlotFunctionsTest/Tex/1200f80be4af0fe8.svg b/tests/tests_cache/graph/PlotFunctionsTest/Tex/1200f80be4af0fe8.svg
deleted file mode 100644
index df062f2f0..000000000
--- a/tests/tests_cache/graph/PlotFunctionsTest/Tex/1200f80be4af0fe8.svg
+++ /dev/null
@@ -1,10 +0,0 @@
-<?xml version='1.0' encoding='UTF-8'?>
-<!-- This file was generated by dvisvgm 2.3.5 -->
-<svg height='6.22665pt' version='1.1' viewBox='169.234572 -4.289468 5.241955 6.22665' width='5.241955pt' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'>
-<defs>
-<path d='M4.841843 -3.795766C4.881694 -3.935243 4.881694 -3.955168 4.881694 -4.024907C4.881694 -4.204234 4.742217 -4.293898 4.592777 -4.293898C4.493151 -4.293898 4.333748 -4.234122 4.244085 -4.084682C4.224159 -4.034869 4.144458 -3.726027 4.104608 -3.5467C4.034869 -3.287671 3.965131 -3.01868 3.905355 -2.749689L3.457036 -0.956413C3.417186 -0.806974 2.988792 -0.109589 2.331258 -0.109589C1.823163 -0.109589 1.713574 -0.547945 1.713574 -0.916563C1.713574 -1.374844 1.882939 -1.992528 2.221669 -2.86924C2.381071 -3.277709 2.420922 -3.387298 2.420922 -3.58655C2.420922 -4.034869 2.102117 -4.403487 1.603985 -4.403487C0.657534 -4.403487 0.288917 -2.958904 0.288917 -2.86924C0.288917 -2.769614 0.388543 -2.769614 0.408468 -2.769614C0.508095 -2.769614 0.518057 -2.789539 0.56787 -2.948941C0.836862 -3.88543 1.235367 -4.184309 1.574097 -4.184309C1.653798 -4.184309 1.823163 -4.184309 1.823163 -3.865504C1.823163 -3.616438 1.723537 -3.35741 1.653798 -3.16812C1.255293 -2.11208 1.075965 -1.544209 1.075965 -1.075965C1.075965 -0.18929 1.703611 0.109589 2.291407 0.109589C2.67995 0.109589 3.01868 -0.059776 3.297634 -0.33873C3.16812 0.179328 3.048568 0.667497 2.650062 1.195517C2.391034 1.534247 2.012453 1.823163 1.554172 1.823163C1.414695 1.823163 0.966376 1.793275 0.797011 1.404732C0.956413 1.404732 1.085928 1.404732 1.225405 1.285181C1.325031 1.195517 1.424658 1.066002 1.424658 0.876712C1.424658 0.56787 1.155666 0.52802 1.05604 0.52802C0.826899 0.52802 0.498132 0.687422 0.498132 1.175592C0.498132 1.673724 0.936488 2.042341 1.554172 2.042341C2.580324 2.042341 3.606476 1.135741 3.88543 0.009963L4.841843 -3.795766Z' id='g0-121'/>
-</defs>
-<g id='page1'>
-<use x='169.234572' xlink:href='#g0-121' y='0'/>
-</g>
-</svg>
\ No newline at end of file
diff --git a/tests/tests_cache/graph/PlotFunctionsTest/Tex/1200f80be4af0fe8.tex b/tests/tests_cache/graph/PlotFunctionsTest/Tex/1200f80be4af0fe8.tex
deleted file mode 100644
index fa9d8ebbd..000000000
--- a/tests/tests_cache/graph/PlotFunctionsTest/Tex/1200f80be4af0fe8.tex
+++ /dev/null
@@ -1,8 +0,0 @@
-\documentclass[preview]{standalone}\usepackage[english]{babel}\usepackage{amsmath}\usepackage{amssymb}\usepackage{dsfont}\usepackage{setspace}\usepackage{tipa}\usepackage{relsize}\usepackage{textcomp}\usepackage{mathrsfs}\usepackage{calligra}\usepackage{wasysym}\usepackage{ragged2e}\usepackage{physics}\usepackage{xcolor}\usepackage{microtype}\usepackage[utf8]{inputenc}\usepackage[T1]{fontenc}\linespread{1}
-\DisableLigatures{encoding = *, family = *}
-
-\begin{document}
-
-\centering $y$
-
-\end{document}
\ No newline at end of file
diff --git a/tests/tests_cache/graph/PlotFunctionsTest/Tex/39b35afad20df986.aux b/tests/tests_cache/graph/PlotFunctionsTest/Tex/39b35afad20df986.aux
deleted file mode 100644
index f23e54680..000000000
--- a/tests/tests_cache/graph/PlotFunctionsTest/Tex/39b35afad20df986.aux
+++ /dev/null
@@ -1 +0,0 @@
-\relax
diff --git a/tests/tests_cache/graph/PlotFunctionsTest/Tex/39b35afad20df986.dvi b/tests/tests_cache/graph/PlotFunctionsTest/Tex/39b35afad20df986.dvi
deleted file mode 100644
index 7d24941af..000000000
Binary files a/tests/tests_cache/graph/PlotFunctionsTest/Tex/39b35afad20df986.dvi and /dev/null differ
diff --git a/tests/tests_cache/graph/PlotFunctionsTest/Tex/39b35afad20df986.svg b/tests/tests_cache/graph/PlotFunctionsTest/Tex/39b35afad20df986.svg
deleted file mode 100644
index e47df64e9..000000000
--- a/tests/tests_cache/graph/PlotFunctionsTest/Tex/39b35afad20df986.svg
+++ /dev/null
@@ -1,10 +0,0 @@
-<?xml version='1.0' encoding='UTF-8'?>
-<!-- This file was generated by dvisvgm 2.3.5 -->
-<svg height='6.22665pt' version='1.1' viewBox='0 -4.289468 5.241955 6.22665' width='5.241955pt' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'>
-<defs>
-<path d='M4.841843 -3.795766C4.881694 -3.935243 4.881694 -3.955168 4.881694 -4.024907C4.881694 -4.204234 4.742217 -4.293898 4.592777 -4.293898C4.493151 -4.293898 4.333748 -4.234122 4.244085 -4.084682C4.224159 -4.034869 4.144458 -3.726027 4.104608 -3.5467C4.034869 -3.287671 3.965131 -3.01868 3.905355 -2.749689L3.457036 -0.956413C3.417186 -0.806974 2.988792 -0.109589 2.331258 -0.109589C1.823163 -0.109589 1.713574 -0.547945 1.713574 -0.916563C1.713574 -1.374844 1.882939 -1.992528 2.221669 -2.86924C2.381071 -3.277709 2.420922 -3.387298 2.420922 -3.58655C2.420922 -4.034869 2.102117 -4.403487 1.603985 -4.403487C0.657534 -4.403487 0.288917 -2.958904 0.288917 -2.86924C0.288917 -2.769614 0.388543 -2.769614 0.408468 -2.769614C0.508095 -2.769614 0.518057 -2.789539 0.56787 -2.948941C0.836862 -3.88543 1.235367 -4.184309 1.574097 -4.184309C1.653798 -4.184309 1.823163 -4.184309 1.823163 -3.865504C1.823163 -3.616438 1.723537 -3.35741 1.653798 -3.16812C1.255293 -2.11208 1.075965 -1.544209 1.075965 -1.075965C1.075965 -0.18929 1.703611 0.109589 2.291407 0.109589C2.67995 0.109589 3.01868 -0.059776 3.297634 -0.33873C3.16812 0.179328 3.048568 0.667497 2.650062 1.195517C2.391034 1.534247 2.012453 1.823163 1.554172 1.823163C1.414695 1.823163 0.966376 1.793275 0.797011 1.404732C0.956413 1.404732 1.085928 1.404732 1.225405 1.285181C1.325031 1.195517 1.424658 1.066002 1.424658 0.876712C1.424658 0.56787 1.155666 0.52802 1.05604 0.52802C0.826899 0.52802 0.498132 0.687422 0.498132 1.175592C0.498132 1.673724 0.936488 2.042341 1.554172 2.042341C2.580324 2.042341 3.606476 1.135741 3.88543 0.009963L4.841843 -3.795766Z' id='g0-121'/>
-</defs>
-<g id='page1'>
-<use x='0' xlink:href='#g0-121' y='0'/>
-</g>
-</svg>
\ No newline at end of file
diff --git a/tests/tests_cache/graph/PlotFunctionsTest/Tex/39b35afad20df986.tex b/tests/tests_cache/graph/PlotFunctionsTest/Tex/39b35afad20df986.tex
deleted file mode 100644
index 1cda47097..000000000
--- a/tests/tests_cache/graph/PlotFunctionsTest/Tex/39b35afad20df986.tex
+++ /dev/null
@@ -1,8 +0,0 @@
-\documentclass[preview]{standalone}\usepackage[english]{babel}\usepackage{amsmath}\usepackage{amssymb}\usepackage{dsfont}\usepackage{setspace}\usepackage{tipa}\usepackage{relsize}\usepackage{textcomp}\usepackage{mathrsfs}\usepackage{calligra}\usepackage{wasysym}\usepackage{ragged2e}\usepackage{physics}\usepackage{xcolor}\usepackage{microtype}\usepackage[utf8]{inputenc}\usepackage[T1]{fontenc}\linespread{1}
-\DisableLigatures{encoding = *, family = *}
-
-\begin{document}
-
-$y$
-
-\end{document}
\ No newline at end of file
diff --git a/tests/tests_cache/graph/PlotFunctionsTest/Tex/3ee0bf2657c6caac.aux b/tests/tests_cache/graph/PlotFunctionsTest/Tex/3ee0bf2657c6caac.aux
deleted file mode 100644
index f23e54680..000000000
--- a/tests/tests_cache/graph/PlotFunctionsTest/Tex/3ee0bf2657c6caac.aux
+++ /dev/null
@@ -1 +0,0 @@
-\relax
diff --git a/tests/tests_cache/graph/PlotFunctionsTest/Tex/3ee0bf2657c6caac.dvi b/tests/tests_cache/graph/PlotFunctionsTest/Tex/3ee0bf2657c6caac.dvi
deleted file mode 100644
index 2057a2033..000000000
Binary files a/tests/tests_cache/graph/PlotFunctionsTest/Tex/3ee0bf2657c6caac.dvi and /dev/null differ
diff --git a/tests/tests_cache/graph/PlotFunctionsTest/Tex/3ee0bf2657c6caac.svg b/tests/tests_cache/graph/PlotFunctionsTest/Tex/3ee0bf2657c6caac.svg
deleted file mode 100644
index ea34f6356..000000000
--- a/tests/tests_cache/graph/PlotFunctionsTest/Tex/3ee0bf2657c6caac.svg
+++ /dev/null
@@ -1,10 +0,0 @@
-<?xml version='1.0' encoding='UTF-8'?>
-<!-- This file was generated by dvisvgm 2.3.5 -->
-<svg height='6.420368pt' version='1.1' viewBox='169.364866 -6.420368 4.981339 6.420368' width='4.981339pt' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'>
-<defs>
-<path d='M4.582814 -3.188045C4.582814 -3.985056 4.533001 -4.782067 4.184309 -5.519303C3.726027 -6.475716 2.909091 -6.635118 2.49066 -6.635118C1.892902 -6.635118 1.165629 -6.37609 0.757161 -5.449564C0.438356 -4.762142 0.388543 -3.985056 0.388543 -3.188045C0.388543 -2.440847 0.428394 -1.544209 0.836862 -0.787049C1.265255 0.019925 1.992528 0.219178 2.480697 0.219178C3.01868 0.219178 3.775841 0.009963 4.214197 -0.936488C4.533001 -1.62391 4.582814 -2.400996 4.582814 -3.188045ZM2.480697 0C2.092154 0 1.504359 -0.249066 1.325031 -1.205479C1.215442 -1.803238 1.215442 -2.719801 1.215442 -3.307597C1.215442 -3.945205 1.215442 -4.60274 1.295143 -5.140722C1.484433 -6.326276 2.231631 -6.41594 2.480697 -6.41594C2.809465 -6.41594 3.466999 -6.236613 3.656289 -5.250311C3.755915 -4.692403 3.755915 -3.935243 3.755915 -3.307597C3.755915 -2.560399 3.755915 -1.882939 3.646326 -1.24533C3.496887 -0.298879 2.929016 0 2.480697 0Z' id='g0-48'/>
-</defs>
-<g id='page1'>
-<use x='169.364866' xlink:href='#g0-48' y='0'/>
-</g>
-</svg>
\ No newline at end of file
diff --git a/tests/tests_cache/graph/PlotFunctionsTest/Tex/3ee0bf2657c6caac.tex b/tests/tests_cache/graph/PlotFunctionsTest/Tex/3ee0bf2657c6caac.tex
deleted file mode 100644
index e0855be0a..000000000
--- a/tests/tests_cache/graph/PlotFunctionsTest/Tex/3ee0bf2657c6caac.tex
+++ /dev/null
@@ -1,10 +0,0 @@
-\documentclass[preview]{standalone}\usepackage[english]{babel}\usepackage{amsmath}\usepackage{amssymb}\usepackage{dsfont}\usepackage{setspace}\usepackage{tipa}\usepackage{relsize}\usepackage{textcomp}\usepackage{mathrsfs}\usepackage{calligra}\usepackage{wasysym}\usepackage{ragged2e}\usepackage{physics}\usepackage{xcolor}\usepackage{microtype}\usepackage[utf8]{inputenc}\usepackage[T1]{fontenc}\linespread{1}
-\DisableLigatures{encoding = *, family = *}
-
-\begin{document}
-
-\begin{align*}
-0
-\end{align*}
-
-\end{document}
\ No newline at end of file
diff --git a/tests/tests_cache/graph/PlotFunctionsTest/Tex/875b86192b4861d3.aux b/tests/tests_cache/graph/PlotFunctionsTest/Tex/875b86192b4861d3.aux
deleted file mode 100644
index f23e54680..000000000
--- a/tests/tests_cache/graph/PlotFunctionsTest/Tex/875b86192b4861d3.aux
+++ /dev/null
@@ -1 +0,0 @@
-\relax
diff --git a/tests/tests_cache/graph/PlotFunctionsTest/Tex/875b86192b4861d3.dvi b/tests/tests_cache/graph/PlotFunctionsTest/Tex/875b86192b4861d3.dvi
deleted file mode 100644
index e98b9330f..000000000
Binary files a/tests/tests_cache/graph/PlotFunctionsTest/Tex/875b86192b4861d3.dvi and /dev/null differ
diff --git a/tests/tests_cache/graph/PlotFunctionsTest/Tex/875b86192b4861d3.svg b/tests/tests_cache/graph/PlotFunctionsTest/Tex/875b86192b4861d3.svg
deleted file mode 100644
index 2bc85a93a..000000000
--- a/tests/tests_cache/graph/PlotFunctionsTest/Tex/875b86192b4861d3.svg
+++ /dev/null
@@ -1,10 +0,0 @@
-<?xml version='1.0' encoding='UTF-8'?>
-<!-- This file was generated by dvisvgm 2.3.5 -->
-<svg height='6.420368pt' version='1.1' viewBox='169.364866 -6.420368 4.981339 6.420368' width='4.981339pt' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'>
-<defs>
-<path d='M2.929016 -6.37609C2.929016 -6.615193 2.929016 -6.635118 2.699875 -6.635118C2.082192 -5.997509 1.205479 -5.997509 0.886675 -5.997509V-5.688667C1.085928 -5.688667 1.673724 -5.688667 2.191781 -5.947696V-0.787049C2.191781 -0.428394 2.161893 -0.308842 1.265255 -0.308842H0.946451V0C1.295143 -0.029888 2.161893 -0.029888 2.560399 -0.029888S3.825654 -0.029888 4.174346 0V-0.308842H3.855542C2.958904 -0.308842 2.929016 -0.418431 2.929016 -0.787049V-6.37609Z' id='g0-49'/>
-</defs>
-<g id='page1'>
-<use x='169.364866' xlink:href='#g0-49' y='0'/>
-</g>
-</svg>
\ No newline at end of file
diff --git a/tests/tests_cache/graph/PlotFunctionsTest/Tex/875b86192b4861d3.tex b/tests/tests_cache/graph/PlotFunctionsTest/Tex/875b86192b4861d3.tex
deleted file mode 100644
index 3f1a7c7d9..000000000
--- a/tests/tests_cache/graph/PlotFunctionsTest/Tex/875b86192b4861d3.tex
+++ /dev/null
@@ -1,10 +0,0 @@
-\documentclass[preview]{standalone}\usepackage[english]{babel}\usepackage{amsmath}\usepackage{amssymb}\usepackage{dsfont}\usepackage{setspace}\usepackage{tipa}\usepackage{relsize}\usepackage{textcomp}\usepackage{mathrsfs}\usepackage{calligra}\usepackage{wasysym}\usepackage{ragged2e}\usepackage{physics}\usepackage{xcolor}\usepackage{microtype}\usepackage[utf8]{inputenc}\usepackage[T1]{fontenc}\linespread{1}
-\DisableLigatures{encoding = *, family = *}
-
-\begin{document}
-
-\begin{align*}
-1
-\end{align*}
-
-\end{document}
\ No newline at end of file
diff --git a/tests/tests_cache/graph/PlotFunctionsTest/Tex/c3991b8028e98252.aux b/tests/tests_cache/graph/PlotFunctionsTest/Tex/c3991b8028e98252.aux
deleted file mode 100644
index f23e54680..000000000
--- a/tests/tests_cache/graph/PlotFunctionsTest/Tex/c3991b8028e98252.aux
+++ /dev/null
@@ -1 +0,0 @@
-\relax
diff --git a/tests/tests_cache/graph/PlotFunctionsTest/Tex/c3991b8028e98252.dvi b/tests/tests_cache/graph/PlotFunctionsTest/Tex/c3991b8028e98252.dvi
deleted file mode 100644
index c6e59a3e3..000000000
Binary files a/tests/tests_cache/graph/PlotFunctionsTest/Tex/c3991b8028e98252.dvi and /dev/null differ
diff --git a/tests/tests_cache/graph/PlotFunctionsTest/Tex/c3991b8028e98252.svg b/tests/tests_cache/graph/PlotFunctionsTest/Tex/c3991b8028e98252.svg
deleted file mode 100644
index eebdd49a7..000000000
--- a/tests/tests_cache/graph/PlotFunctionsTest/Tex/c3991b8028e98252.svg
+++ /dev/null
@@ -1,10 +0,0 @@
-<?xml version='1.0' encoding='UTF-8'?>
-<!-- This file was generated by dvisvgm 2.3.5 -->
-<svg height='6.641773pt' version='1.1' viewBox='167.98117 -5.811546 7.748748 6.641773' width='7.748748pt' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'>
-<defs>
-<path d='M6.56538 -2.291407C6.734745 -2.291407 6.914072 -2.291407 6.914072 -2.49066S6.734745 -2.689913 6.56538 -2.689913H1.175592C1.006227 -2.689913 0.826899 -2.689913 0.826899 -2.49066S1.006227 -2.291407 1.175592 -2.291407H6.56538Z' id='g0-0'/>
-</defs>
-<g id='page1'>
-<use x='167.98117' xlink:href='#g0-0' y='0'/>
-</g>
-</svg>
\ No newline at end of file
diff --git a/tests/tests_cache/graph/PlotFunctionsTest/Tex/c3991b8028e98252.tex b/tests/tests_cache/graph/PlotFunctionsTest/Tex/c3991b8028e98252.tex
deleted file mode 100644
index 93398de6d..000000000
--- a/tests/tests_cache/graph/PlotFunctionsTest/Tex/c3991b8028e98252.tex
+++ /dev/null
@@ -1,10 +0,0 @@
-\documentclass[preview]{standalone}\usepackage[english]{babel}\usepackage{amsmath}\usepackage{amssymb}\usepackage{dsfont}\usepackage{setspace}\usepackage{tipa}\usepackage{relsize}\usepackage{textcomp}\usepackage{mathrsfs}\usepackage{calligra}\usepackage{wasysym}\usepackage{ragged2e}\usepackage{physics}\usepackage{xcolor}\usepackage{microtype}\usepackage[utf8]{inputenc}\usepackage[T1]{fontenc}\linespread{1}
-\DisableLigatures{encoding = *, family = *}
-
-\begin{document}
-
-\begin{align*}
--
-\end{align*}
-
-\end{document}
\ No newline at end of file
diff --git a/tests/tests_cache/graph/PlotFunctionsTest/Tex/c89fcd2b00c75d13.aux b/tests/tests_cache/graph/PlotFunctionsTest/Tex/c89fcd2b00c75d13.aux
deleted file mode 100644
index f23e54680..000000000
--- a/tests/tests_cache/graph/PlotFunctionsTest/Tex/c89fcd2b00c75d13.aux
+++ /dev/null
@@ -1 +0,0 @@
-\relax
diff --git a/tests/tests_cache/graph/PlotFunctionsTest/Tex/c89fcd2b00c75d13.dvi b/tests/tests_cache/graph/PlotFunctionsTest/Tex/c89fcd2b00c75d13.dvi
deleted file mode 100644
index 32cd81522..000000000
Binary files a/tests/tests_cache/graph/PlotFunctionsTest/Tex/c89fcd2b00c75d13.dvi and /dev/null differ
diff --git a/tests/tests_cache/graph/PlotFunctionsTest/Tex/c89fcd2b00c75d13.svg b/tests/tests_cache/graph/PlotFunctionsTest/Tex/c89fcd2b00c75d13.svg
deleted file mode 100644
index a576f5e9a..000000000
--- a/tests/tests_cache/graph/PlotFunctionsTest/Tex/c89fcd2b00c75d13.svg
+++ /dev/null
@@ -1,10 +0,0 @@
-<?xml version='1.0' encoding='UTF-8'?>
-<!-- This file was generated by dvisvgm 2.3.5 -->
-<svg height='6.420368pt' version='1.1' viewBox='169.364866 -6.420368 4.981339 6.420368' width='4.981339pt' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'>
-<defs>
-<path d='M1.315068 -3.267746V-3.506849C1.315068 -6.027397 2.550436 -6.386052 3.058531 -6.386052C3.297634 -6.386052 3.716065 -6.326276 3.935243 -5.987547C3.785803 -5.987547 3.387298 -5.987547 3.387298 -5.539228C3.387298 -5.230386 3.626401 -5.080946 3.845579 -5.080946C4.004981 -5.080946 4.303861 -5.17061 4.303861 -5.559153C4.303861 -6.156912 3.865504 -6.635118 3.038605 -6.635118C1.763387 -6.635118 0.418431 -5.349938 0.418431 -3.148194C0.418431 -0.488169 1.574097 0.219178 2.500623 0.219178C3.606476 0.219178 4.552927 -0.71731 4.552927 -2.032379C4.552927 -3.297634 3.666252 -4.254047 2.560399 -4.254047C1.882939 -4.254047 1.514321 -3.745953 1.315068 -3.267746ZM2.500623 -0.059776C1.872976 -0.059776 1.574097 -0.657534 1.514321 -0.806974C1.334994 -1.275218 1.334994 -2.072229 1.334994 -2.251557C1.334994 -3.028643 1.653798 -4.024907 2.550436 -4.024907C2.709838 -4.024907 3.16812 -4.024907 3.476961 -3.407223C3.656289 -3.038605 3.656289 -2.530511 3.656289 -2.042341C3.656289 -1.564134 3.656289 -1.066002 3.486924 -0.707347C3.188045 -0.109589 2.729763 -0.059776 2.500623 -0.059776Z' id='g0-54'/>
-</defs>
-<g id='page1'>
-<use x='169.364866' xlink:href='#g0-54' y='0'/>
-</g>
-</svg>
\ No newline at end of file
diff --git a/tests/tests_cache/graph/PlotFunctionsTest/Tex/c89fcd2b00c75d13.tex b/tests/tests_cache/graph/PlotFunctionsTest/Tex/c89fcd2b00c75d13.tex
deleted file mode 100644
index 5536d3ffc..000000000
--- a/tests/tests_cache/graph/PlotFunctionsTest/Tex/c89fcd2b00c75d13.tex
+++ /dev/null
@@ -1,10 +0,0 @@
-\documentclass[preview]{standalone}\usepackage[english]{babel}\usepackage{amsmath}\usepackage{amssymb}\usepackage{dsfont}\usepackage{setspace}\usepackage{tipa}\usepackage{relsize}\usepackage{textcomp}\usepackage{mathrsfs}\usepackage{calligra}\usepackage{wasysym}\usepackage{ragged2e}\usepackage{physics}\usepackage{xcolor}\usepackage{microtype}\usepackage[utf8]{inputenc}\usepackage[T1]{fontenc}\linespread{1}
-\DisableLigatures{encoding = *, family = *}
-
-\begin{document}
-
-\begin{align*}
-6
-\end{align*}
-
-\end{document}
\ No newline at end of file
diff --git a/tests/tests_cache/graph/PlotFunctionsTest/Tex/cfabdf460253a9af.aux b/tests/tests_cache/graph/PlotFunctionsTest/Tex/cfabdf460253a9af.aux
deleted file mode 100644
index f23e54680..000000000
--- a/tests/tests_cache/graph/PlotFunctionsTest/Tex/cfabdf460253a9af.aux
+++ /dev/null
@@ -1 +0,0 @@
-\relax
diff --git a/tests/tests_cache/graph/PlotFunctionsTest/Tex/cfabdf460253a9af.dvi b/tests/tests_cache/graph/PlotFunctionsTest/Tex/cfabdf460253a9af.dvi
deleted file mode 100644
index f3bf28ec9..000000000
Binary files a/tests/tests_cache/graph/PlotFunctionsTest/Tex/cfabdf460253a9af.dvi and /dev/null differ
diff --git a/tests/tests_cache/graph/PlotFunctionsTest/Tex/cfabdf460253a9af.svg b/tests/tests_cache/graph/PlotFunctionsTest/Tex/cfabdf460253a9af.svg
deleted file mode 100644
index ec605f861..000000000
--- a/tests/tests_cache/graph/PlotFunctionsTest/Tex/cfabdf460253a9af.svg
+++ /dev/null
@@ -1,10 +0,0 @@
-<?xml version='1.0' encoding='UTF-8'?>
-<!-- This file was generated by dvisvgm 2.3.5 -->
-<svg height='4.289468pt' version='1.1' viewBox='0 -4.289468 5.693932 4.289468' width='5.693932pt' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'>
-<defs>
-<path d='M3.327522 -3.008717C3.387298 -3.267746 3.616438 -4.184309 4.313823 -4.184309C4.363636 -4.184309 4.60274 -4.184309 4.811955 -4.054795C4.533001 -4.004981 4.333748 -3.755915 4.333748 -3.516812C4.333748 -3.35741 4.443337 -3.16812 4.712329 -3.16812C4.931507 -3.16812 5.250311 -3.347447 5.250311 -3.745953C5.250311 -4.26401 4.662516 -4.403487 4.323786 -4.403487C3.745953 -4.403487 3.39726 -3.875467 3.277709 -3.646326C3.028643 -4.303861 2.49066 -4.403487 2.201743 -4.403487C1.165629 -4.403487 0.597758 -3.118306 0.597758 -2.86924C0.597758 -2.769614 0.697385 -2.769614 0.71731 -2.769614C0.797011 -2.769614 0.826899 -2.789539 0.846824 -2.879203C1.185554 -3.935243 1.843088 -4.184309 2.181818 -4.184309C2.371108 -4.184309 2.719801 -4.094645 2.719801 -3.516812C2.719801 -3.20797 2.550436 -2.540473 2.181818 -1.145704C2.022416 -0.52802 1.673724 -0.109589 1.235367 -0.109589C1.175592 -0.109589 0.946451 -0.109589 0.737235 -0.239103C0.986301 -0.288917 1.205479 -0.498132 1.205479 -0.777086C1.205479 -1.046077 0.986301 -1.125778 0.836862 -1.125778C0.537983 -1.125778 0.288917 -0.86675 0.288917 -0.547945C0.288917 -0.089664 0.787049 0.109589 1.225405 0.109589C1.882939 0.109589 2.241594 -0.587796 2.271482 -0.647572C2.391034 -0.278954 2.749689 0.109589 3.347447 0.109589C4.373599 0.109589 4.941469 -1.175592 4.941469 -1.424658C4.941469 -1.524284 4.851806 -1.524284 4.821918 -1.524284C4.732254 -1.524284 4.712329 -1.484433 4.692403 -1.414695C4.363636 -0.348692 3.686177 -0.109589 3.367372 -0.109589C2.978829 -0.109589 2.819427 -0.428394 2.819427 -0.767123C2.819427 -0.986301 2.879203 -1.205479 2.988792 -1.643836L3.327522 -3.008717Z' id='g0-120'/>
-</defs>
-<g id='page1'>
-<use x='0' xlink:href='#g0-120' y='0'/>
-</g>
-</svg>
\ No newline at end of file
diff --git a/tests/tests_cache/graph/PlotFunctionsTest/Tex/cfabdf460253a9af.tex b/tests/tests_cache/graph/PlotFunctionsTest/Tex/cfabdf460253a9af.tex
deleted file mode 100644
index 3d7f7ed9f..000000000
--- a/tests/tests_cache/graph/PlotFunctionsTest/Tex/cfabdf460253a9af.tex
+++ /dev/null
@@ -1,8 +0,0 @@
-\documentclass[preview]{standalone}\usepackage[english]{babel}\usepackage{amsmath}\usepackage{amssymb}\usepackage{dsfont}\usepackage{setspace}\usepackage{tipa}\usepackage{relsize}\usepackage{textcomp}\usepackage{mathrsfs}\usepackage{calligra}\usepackage{wasysym}\usepackage{ragged2e}\usepackage{physics}\usepackage{xcolor}\usepackage{microtype}\usepackage[utf8]{inputenc}\usepackage[T1]{fontenc}\linespread{1}
-\DisableLigatures{encoding = *, family = *}
-
-\begin{document}
-
-$x$
-
-\end{document}
\ No newline at end of file
diff --git a/tests/tests_cache/graph/PlotFunctionsTest/Tex/dc8a033476053d80.aux b/tests/tests_cache/graph/PlotFunctionsTest/Tex/dc8a033476053d80.aux
deleted file mode 100644
index f23e54680..000000000
--- a/tests/tests_cache/graph/PlotFunctionsTest/Tex/dc8a033476053d80.aux
+++ /dev/null
@@ -1 +0,0 @@
-\relax
diff --git a/tests/tests_cache/graph/PlotFunctionsTest/Tex/dc8a033476053d80.dvi b/tests/tests_cache/graph/PlotFunctionsTest/Tex/dc8a033476053d80.dvi
deleted file mode 100644
index 1a51f44b9..000000000
Binary files a/tests/tests_cache/graph/PlotFunctionsTest/Tex/dc8a033476053d80.dvi and /dev/null differ
diff --git a/tests/tests_cache/graph/PlotFunctionsTest/Tex/dc8a033476053d80.svg b/tests/tests_cache/graph/PlotFunctionsTest/Tex/dc8a033476053d80.svg
deleted file mode 100644
index 048976fba..000000000
--- a/tests/tests_cache/graph/PlotFunctionsTest/Tex/dc8a033476053d80.svg
+++ /dev/null
@@ -1,10 +0,0 @@
-<?xml version='1.0' encoding='UTF-8'?>
-<!-- This file was generated by dvisvgm 2.3.5 -->
-<svg height='6.420368pt' version='1.1' viewBox='169.364866 -6.420368 4.981339 6.420368' width='4.981339pt' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'>
-<defs>
-<path d='M1.62391 -4.552927C1.165629 -4.851806 1.125778 -5.190535 1.125778 -5.3599C1.125778 -5.967621 1.77335 -6.386052 2.480697 -6.386052C3.20797 -6.386052 3.845579 -5.867995 3.845579 -5.150685C3.845579 -4.582814 3.457036 -4.104608 2.859278 -3.755915L1.62391 -4.552927ZM3.078456 -3.606476C3.795766 -3.975093 4.283935 -4.493151 4.283935 -5.150685C4.283935 -6.067248 3.39726 -6.635118 2.49066 -6.635118C1.494396 -6.635118 0.687422 -5.897883 0.687422 -4.971357C0.687422 -4.79203 0.707347 -4.343711 1.125778 -3.875467C1.235367 -3.755915 1.603985 -3.506849 1.853051 -3.337484C1.275218 -3.048568 0.418431 -2.49066 0.418431 -1.504359C0.418431 -0.448319 1.43462 0.219178 2.480697 0.219178C3.606476 0.219178 4.552927 -0.607721 4.552927 -1.673724C4.552927 -2.032379 4.443337 -2.480697 4.064757 -2.899128C3.875467 -3.108344 3.716065 -3.20797 3.078456 -3.606476ZM2.082192 -3.188045L3.307597 -2.410959C3.58655 -2.221669 4.054795 -1.92279 4.054795 -1.315068C4.054795 -0.577833 3.307597 -0.059776 2.49066 -0.059776C1.633873 -0.059776 0.916563 -0.67746 0.916563 -1.504359C0.916563 -2.082192 1.235367 -2.719801 2.082192 -3.188045Z' id='g0-56'/>
-</defs>
-<g id='page1'>
-<use x='169.364866' xlink:href='#g0-56' y='0'/>
-</g>
-</svg>
\ No newline at end of file
diff --git a/tests/tests_cache/graph/PlotFunctionsTest/Tex/dc8a033476053d80.tex b/tests/tests_cache/graph/PlotFunctionsTest/Tex/dc8a033476053d80.tex
deleted file mode 100644
index 72cc03fc9..000000000
--- a/tests/tests_cache/graph/PlotFunctionsTest/Tex/dc8a033476053d80.tex
+++ /dev/null
@@ -1,10 +0,0 @@
-\documentclass[preview]{standalone}\usepackage[english]{babel}\usepackage{amsmath}\usepackage{amssymb}\usepackage{dsfont}\usepackage{setspace}\usepackage{tipa}\usepackage{relsize}\usepackage{textcomp}\usepackage{mathrsfs}\usepackage{calligra}\usepackage{wasysym}\usepackage{ragged2e}\usepackage{physics}\usepackage{xcolor}\usepackage{microtype}\usepackage[utf8]{inputenc}\usepackage[T1]{fontenc}\linespread{1}
-\DisableLigatures{encoding = *, family = *}
-
-\begin{document}
-
-\begin{align*}
-8
-\end{align*}
-
-\end{document}
\ No newline at end of file
diff --git a/tests/tests_cache/graph/PlotFunctionsTest/Tex/e5e103db57904bc6.aux b/tests/tests_cache/graph/PlotFunctionsTest/Tex/e5e103db57904bc6.aux
deleted file mode 100644
index f23e54680..000000000
--- a/tests/tests_cache/graph/PlotFunctionsTest/Tex/e5e103db57904bc6.aux
+++ /dev/null
@@ -1 +0,0 @@
-\relax
diff --git a/tests/tests_cache/graph/PlotFunctionsTest/Tex/e5e103db57904bc6.dvi b/tests/tests_cache/graph/PlotFunctionsTest/Tex/e5e103db57904bc6.dvi
deleted file mode 100644
index 332ee0665..000000000
Binary files a/tests/tests_cache/graph/PlotFunctionsTest/Tex/e5e103db57904bc6.dvi and /dev/null differ
diff --git a/tests/tests_cache/graph/PlotFunctionsTest/Tex/e5e103db57904bc6.svg b/tests/tests_cache/graph/PlotFunctionsTest/Tex/e5e103db57904bc6.svg
deleted file mode 100644
index 56a1729a3..000000000
--- a/tests/tests_cache/graph/PlotFunctionsTest/Tex/e5e103db57904bc6.svg
+++ /dev/null
@@ -1,10 +0,0 @@
-<?xml version='1.0' encoding='UTF-8'?>
-<!-- This file was generated by dvisvgm 2.3.5 -->
-<svg height='6.420368pt' version='1.1' viewBox='169.364866 -6.420368 4.981339 6.420368' width='4.981339pt' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'>
-<defs>
-<path d='M2.929016 -1.643836V-0.777086C2.929016 -0.418431 2.909091 -0.308842 2.171856 -0.308842H1.96264V0C2.371108 -0.029888 2.889166 -0.029888 3.307597 -0.029888S4.254047 -0.029888 4.662516 0V-0.308842H4.4533C3.716065 -0.308842 3.696139 -0.418431 3.696139 -0.777086V-1.643836H4.692403V-1.952677H3.696139V-6.485679C3.696139 -6.684932 3.696139 -6.744707 3.536737 -6.744707C3.447073 -6.744707 3.417186 -6.744707 3.337484 -6.625156L0.278954 -1.952677V-1.643836H2.929016ZM2.988792 -1.952677H0.557908L2.988792 -5.668742V-1.952677Z' id='g0-52'/>
-</defs>
-<g id='page1'>
-<use x='169.364866' xlink:href='#g0-52' y='0'/>
-</g>
-</svg>
\ No newline at end of file
diff --git a/tests/tests_cache/graph/PlotFunctionsTest/Tex/e5e103db57904bc6.tex b/tests/tests_cache/graph/PlotFunctionsTest/Tex/e5e103db57904bc6.tex
deleted file mode 100644
index 5f3216f10..000000000
--- a/tests/tests_cache/graph/PlotFunctionsTest/Tex/e5e103db57904bc6.tex
+++ /dev/null
@@ -1,10 +0,0 @@
-\documentclass[preview]{standalone}\usepackage[english]{babel}\usepackage{amsmath}\usepackage{amssymb}\usepackage{dsfont}\usepackage{setspace}\usepackage{tipa}\usepackage{relsize}\usepackage{textcomp}\usepackage{mathrsfs}\usepackage{calligra}\usepackage{wasysym}\usepackage{ragged2e}\usepackage{physics}\usepackage{xcolor}\usepackage{microtype}\usepackage[utf8]{inputenc}\usepackage[T1]{fontenc}\linespread{1}
-\DisableLigatures{encoding = *, family = *}
-
-\begin{document}
-
-\begin{align*}
-4
-\end{align*}
-
-\end{document}
\ No newline at end of file
diff --git a/tests/tests_cache/graph/PlotFunctionsTest/Tex/fe636a0e3b18960b.aux b/tests/tests_cache/graph/PlotFunctionsTest/Tex/fe636a0e3b18960b.aux
deleted file mode 100644
index f23e54680..000000000
--- a/tests/tests_cache/graph/PlotFunctionsTest/Tex/fe636a0e3b18960b.aux
+++ /dev/null
@@ -1 +0,0 @@
-\relax
diff --git a/tests/tests_cache/graph/PlotFunctionsTest/Tex/fe636a0e3b18960b.dvi b/tests/tests_cache/graph/PlotFunctionsTest/Tex/fe636a0e3b18960b.dvi
deleted file mode 100644
index 29ed0da03..000000000
Binary files a/tests/tests_cache/graph/PlotFunctionsTest/Tex/fe636a0e3b18960b.dvi and /dev/null differ
diff --git a/tests/tests_cache/graph/PlotFunctionsTest/Tex/fe636a0e3b18960b.svg b/tests/tests_cache/graph/PlotFunctionsTest/Tex/fe636a0e3b18960b.svg
deleted file mode 100644
index 4eabd7bc0..000000000
--- a/tests/tests_cache/graph/PlotFunctionsTest/Tex/fe636a0e3b18960b.svg
+++ /dev/null
@@ -1,10 +0,0 @@
-<?xml version='1.0' encoding='UTF-8'?>
-<!-- This file was generated by dvisvgm 2.3.5 -->
-<svg height='4.289468pt' version='1.1' viewBox='169.008582 -4.289468 5.693932 4.289468' width='5.693932pt' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'>
-<defs>
-<path d='M3.327522 -3.008717C3.387298 -3.267746 3.616438 -4.184309 4.313823 -4.184309C4.363636 -4.184309 4.60274 -4.184309 4.811955 -4.054795C4.533001 -4.004981 4.333748 -3.755915 4.333748 -3.516812C4.333748 -3.35741 4.443337 -3.16812 4.712329 -3.16812C4.931507 -3.16812 5.250311 -3.347447 5.250311 -3.745953C5.250311 -4.26401 4.662516 -4.403487 4.323786 -4.403487C3.745953 -4.403487 3.39726 -3.875467 3.277709 -3.646326C3.028643 -4.303861 2.49066 -4.403487 2.201743 -4.403487C1.165629 -4.403487 0.597758 -3.118306 0.597758 -2.86924C0.597758 -2.769614 0.697385 -2.769614 0.71731 -2.769614C0.797011 -2.769614 0.826899 -2.789539 0.846824 -2.879203C1.185554 -3.935243 1.843088 -4.184309 2.181818 -4.184309C2.371108 -4.184309 2.719801 -4.094645 2.719801 -3.516812C2.719801 -3.20797 2.550436 -2.540473 2.181818 -1.145704C2.022416 -0.52802 1.673724 -0.109589 1.235367 -0.109589C1.175592 -0.109589 0.946451 -0.109589 0.737235 -0.239103C0.986301 -0.288917 1.205479 -0.498132 1.205479 -0.777086C1.205479 -1.046077 0.986301 -1.125778 0.836862 -1.125778C0.537983 -1.125778 0.288917 -0.86675 0.288917 -0.547945C0.288917 -0.089664 0.787049 0.109589 1.225405 0.109589C1.882939 0.109589 2.241594 -0.587796 2.271482 -0.647572C2.391034 -0.278954 2.749689 0.109589 3.347447 0.109589C4.373599 0.109589 4.941469 -1.175592 4.941469 -1.424658C4.941469 -1.524284 4.851806 -1.524284 4.821918 -1.524284C4.732254 -1.524284 4.712329 -1.484433 4.692403 -1.414695C4.363636 -0.348692 3.686177 -0.109589 3.367372 -0.109589C2.978829 -0.109589 2.819427 -0.428394 2.819427 -0.767123C2.819427 -0.986301 2.879203 -1.205479 2.988792 -1.643836L3.327522 -3.008717Z' id='g0-120'/>
-</defs>
-<g id='page1'>
-<use x='169.008582' xlink:href='#g0-120' y='0'/>
-</g>
-</svg>
\ No newline at end of file
diff --git a/tests/tests_cache/graph/PlotFunctionsTest/Tex/fe636a0e3b18960b.tex b/tests/tests_cache/graph/PlotFunctionsTest/Tex/fe636a0e3b18960b.tex
deleted file mode 100644
index 523a7ab26..000000000
--- a/tests/tests_cache/graph/PlotFunctionsTest/Tex/fe636a0e3b18960b.tex
+++ /dev/null
@@ -1,8 +0,0 @@
-\documentclass[preview]{standalone}\usepackage[english]{babel}\usepackage{amsmath}\usepackage{amssymb}\usepackage{dsfont}\usepackage{setspace}\usepackage{tipa}\usepackage{relsize}\usepackage{textcomp}\usepackage{mathrsfs}\usepackage{calligra}\usepackage{wasysym}\usepackage{ragged2e}\usepackage{physics}\usepackage{xcolor}\usepackage{microtype}\usepackage[utf8]{inputenc}\usepackage[T1]{fontenc}\linespread{1}
-\DisableLigatures{encoding = *, family = *}
-
-\begin{document}
-
-\centering $x$
-
-\end{document}
\ No newline at end of file
diff --git a/tests/tests_cache/writing/TexMobjectTest/Tex/9dc92f13c3a3a7dc.aux b/tests/tests_cache/writing/TexMobjectTest/Tex/9dc92f13c3a3a7dc.aux
deleted file mode 100644
index f23e54680..000000000
--- a/tests/tests_cache/writing/TexMobjectTest/Tex/9dc92f13c3a3a7dc.aux
+++ /dev/null
@@ -1 +0,0 @@
-\relax
diff --git a/tests/tests_cache/writing/TexMobjectTest/Tex/9dc92f13c3a3a7dc.dvi b/tests/tests_cache/writing/TexMobjectTest/Tex/9dc92f13c3a3a7dc.dvi
deleted file mode 100644
index 3922f9948..000000000
Binary files a/tests/tests_cache/writing/TexMobjectTest/Tex/9dc92f13c3a3a7dc.dvi and /dev/null differ
diff --git a/tests/tests_cache/writing/TexMobjectTest/Tex/9dc92f13c3a3a7dc.svg b/tests/tests_cache/writing/TexMobjectTest/Tex/9dc92f13c3a3a7dc.svg
deleted file mode 100644
index fc0f47e8c..000000000
--- a/tests/tests_cache/writing/TexMobjectTest/Tex/9dc92f13c3a3a7dc.svg
+++ /dev/null
@@ -1,33 +0,0 @@
-<?xml version='1.0' encoding='UTF-8'?>
-<!-- This file was generated by dvisvgm 2.3.5 -->
-<svg height='27.090171pt' version='1.1' viewBox='144.009023 -15.455973 54.497512 27.090171' width='54.497512pt' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'>
-<defs>
-<path d='M2.929016 -6.37609C2.929016 -6.615193 2.929016 -6.635118 2.699875 -6.635118C2.082192 -5.997509 1.205479 -5.997509 0.886675 -5.997509V-5.688667C1.085928 -5.688667 1.673724 -5.688667 2.191781 -5.947696V-0.787049C2.191781 -0.428394 2.161893 -0.308842 1.265255 -0.308842H0.946451V0C1.295143 -0.029888 2.161893 -0.029888 2.560399 -0.029888S3.825654 -0.029888 4.174346 0V-0.308842H3.855542C2.958904 -0.308842 2.929016 -0.418431 2.929016 -0.787049V-6.37609Z' id='g3-49'/>
-<path d='M1.315068 -3.267746V-3.506849C1.315068 -6.027397 2.550436 -6.386052 3.058531 -6.386052C3.297634 -6.386052 3.716065 -6.326276 3.935243 -5.987547C3.785803 -5.987547 3.387298 -5.987547 3.387298 -5.539228C3.387298 -5.230386 3.626401 -5.080946 3.845579 -5.080946C4.004981 -5.080946 4.303861 -5.17061 4.303861 -5.559153C4.303861 -6.156912 3.865504 -6.635118 3.038605 -6.635118C1.763387 -6.635118 0.418431 -5.349938 0.418431 -3.148194C0.418431 -0.488169 1.574097 0.219178 2.500623 0.219178C3.606476 0.219178 4.552927 -0.71731 4.552927 -2.032379C4.552927 -3.297634 3.666252 -4.254047 2.560399 -4.254047C1.882939 -4.254047 1.514321 -3.745953 1.315068 -3.267746ZM2.500623 -0.059776C1.872976 -0.059776 1.574097 -0.657534 1.514321 -0.806974C1.334994 -1.275218 1.334994 -2.072229 1.334994 -2.251557C1.334994 -3.028643 1.653798 -4.024907 2.550436 -4.024907C2.709838 -4.024907 3.16812 -4.024907 3.476961 -3.407223C3.656289 -3.038605 3.656289 -2.530511 3.656289 -2.042341C3.656289 -1.564134 3.656289 -1.066002 3.486924 -0.707347C3.188045 -0.109589 2.729763 -0.059776 2.500623 -0.059776Z' id='g3-54'/>
-<path d='M6.844334 -3.257783C6.993773 -3.257783 7.183064 -3.257783 7.183064 -3.457036S6.993773 -3.656289 6.854296 -3.656289H0.886675C0.747198 -3.656289 0.557908 -3.656289 0.557908 -3.457036S0.747198 -3.257783 0.896638 -3.257783H6.844334ZM6.854296 -1.325031C6.993773 -1.325031 7.183064 -1.325031 7.183064 -1.524284S6.993773 -1.723537 6.844334 -1.723537H0.896638C0.747198 -1.723537 0.557908 -1.723537 0.557908 -1.524284S0.747198 -1.325031 0.886675 -1.325031H6.854296Z' id='g3-61'/>
-<path d='M2.336239 -4.435367C2.336239 -4.623661 2.322291 -4.630635 2.127024 -4.630635C1.680697 -4.191283 1.046077 -4.184309 0.760149 -4.184309V-3.93325C0.927522 -3.93325 1.387796 -3.93325 1.771357 -4.128518V-0.571856C1.771357 -0.341719 1.771357 -0.251059 1.073973 -0.251059H0.808966V0C0.934496 -0.006974 1.792279 -0.027895 2.050311 -0.027895C2.266501 -0.027895 3.145205 -0.006974 3.29863 0V-0.251059H3.033624C2.336239 -0.251059 2.336239 -0.341719 2.336239 -0.571856V-4.435367Z' id='g4-49'/>
-<path d='M3.521793 -1.26924H3.284682C3.263761 -1.115816 3.194022 -0.704359 3.103362 -0.63462C3.047572 -0.592777 2.510585 -0.592777 2.412951 -0.592777H1.129763C1.862017 -1.241345 2.106102 -1.436613 2.524533 -1.764384C3.040598 -2.175841 3.521793 -2.608219 3.521793 -3.270735C3.521793 -4.11457 2.782565 -4.630635 1.889913 -4.630635C1.025156 -4.630635 0.439352 -4.02391 0.439352 -3.382316C0.439352 -3.02665 0.739228 -2.991781 0.808966 -2.991781C0.976339 -2.991781 1.17858 -3.110336 1.17858 -3.361395C1.17858 -3.486924 1.129763 -3.731009 0.767123 -3.731009C0.983313 -4.226152 1.457534 -4.379577 1.785305 -4.379577C2.48269 -4.379577 2.84533 -3.835616 2.84533 -3.270735C2.84533 -2.66401 2.412951 -2.182814 2.189788 -1.931756L0.509091 -0.27198C0.439352 -0.209215 0.439352 -0.195268 0.439352 0H3.312578L3.521793 -1.26924Z' id='g4-50'/>
-<path d='M5.355915 -2.343213C5.460523 -2.343213 5.620922 -2.343213 5.620922 -2.517559C5.620922 -2.684932 5.453549 -2.684932 5.362889 -2.684932H0.746202C0.655542 -2.684932 0.488169 -2.684932 0.488169 -2.517559C0.488169 -2.343213 0.648568 -2.343213 0.753176 -2.343213H5.355915ZM5.362889 -0.808966C5.453549 -0.808966 5.620922 -0.808966 5.620922 -0.976339C5.620922 -1.150685 5.460523 -1.150685 5.355915 -1.150685H0.753176C0.648568 -1.150685 0.488169 -1.150685 0.488169 -0.976339C0.488169 -0.808966 0.655542 -0.808966 0.746202 -0.808966H5.362889Z' id='g4-61'/>
-<path d='M0.850809 -0.439352C0.822914 -0.348692 0.781071 -0.174346 0.781071 -0.153425C0.781071 0 0.9066 0.069738 1.018182 0.069738C1.143711 0.069738 1.255293 -0.020922 1.290162 -0.083686S1.380822 -0.369614 1.415691 -0.516065C1.45056 -0.648568 1.527273 -0.969365 1.569116 -1.143711C1.610959 -1.297136 1.652802 -1.45056 1.687671 -1.610959C1.764384 -1.896887 1.778331 -1.952677 1.980573 -2.238605C2.175841 -2.517559 2.503611 -2.880199 3.02665 -2.880199C3.431133 -2.880199 3.438107 -2.524533 3.438107 -2.39203C3.438107 -1.973599 3.138232 -1.199502 3.02665 -0.9066C2.949938 -0.711333 2.922042 -0.648568 2.922042 -0.530012C2.922042 -0.160399 3.228892 0.069738 3.584558 0.069738C4.281943 0.069738 4.588792 -0.892653 4.588792 -0.99726C4.588792 -1.08792 4.498132 -1.08792 4.47721 -1.08792C4.379577 -1.08792 4.372603 -1.046077 4.344707 -0.969365C4.184309 -0.411457 3.884433 -0.125529 3.605479 -0.125529C3.459029 -0.125529 3.431133 -0.223163 3.431133 -0.369614C3.431133 -0.530012 3.466002 -0.620672 3.591532 -0.934496C3.675218 -1.150685 3.961146 -1.889913 3.961146 -2.280448C3.961146 -2.956912 3.424159 -3.075467 3.054545 -3.075467C2.475716 -3.075467 2.085181 -2.719801 1.875965 -2.440847C1.827148 -2.922042 1.415691 -3.075467 1.129763 -3.075467C0.829888 -3.075467 0.669489 -2.859278 0.578829 -2.698879C0.425405 -2.440847 0.327771 -2.043337 0.327771 -2.008468C0.327771 -1.917808 0.425405 -1.917808 0.446326 -1.917808C0.54396 -1.917808 0.550934 -1.93873 0.599751 -2.127024C0.704359 -2.538481 0.836862 -2.880199 1.108842 -2.880199C1.290162 -2.880199 1.338979 -2.726775 1.338979 -2.538481C1.338979 -2.405978 1.276214 -2.147945 1.227397 -1.959651S1.108842 -1.48543 1.073973 -1.332005L0.850809 -0.439352Z' id='g2-110'/>
-<path d='M12.612702 13.947696L13.818182 10.759651H13.569116C13.180573 11.795766 12.124533 12.473225 10.978829 12.772105C10.769614 12.821918 9.793275 13.080946 7.880448 13.080946H1.872976L6.94396 7.13325C7.013699 7.053549 7.033624 7.023661 7.033624 6.973848C7.033624 6.953923 7.033624 6.924035 6.963885 6.824408L2.321295 0.478207H7.780822C9.115816 0.478207 10.022416 0.617684 10.11208 0.637609C10.650062 0.71731 11.516812 0.886675 12.303861 1.384807C12.552927 1.544209 13.230386 1.992528 13.569116 2.799502H13.818182L12.612702 0H0.836862C0.607721 0 0.597758 0.009963 0.56787 0.069738C0.557908 0.099626 0.557908 0.288917 0.557908 0.398506L5.828144 7.611457L0.667497 13.65878C0.56787 13.778331 0.56787 13.828144 0.56787 13.838107C0.56787 13.947696 0.657534 13.947696 0.836862 13.947696H12.612702Z' id='g5-88'/>
-<path d='M2.6401 -3.716065H3.765878C3.437111 -2.241594 3.347447 -1.8132 3.347447 -1.145704C3.347447 -0.996264 3.347447 -0.727273 3.427148 -0.388543C3.526775 0.049813 3.636364 0.109589 3.785803 0.109589C3.985056 0.109589 4.194271 -0.069738 4.194271 -0.268991C4.194271 -0.328767 4.194271 -0.348692 4.134496 -0.488169C3.845579 -1.205479 3.845579 -1.853051 3.845579 -2.132005C3.845579 -2.660025 3.915318 -3.198007 4.024907 -3.716065H5.160648C5.290162 -3.716065 5.648817 -3.716065 5.648817 -4.054795C5.648817 -4.293898 5.439601 -4.293898 5.250311 -4.293898H1.912827C1.693649 -4.293898 1.315068 -4.293898 0.876712 -3.825654C0.52802 -3.437111 0.268991 -2.978829 0.268991 -2.929016C0.268991 -2.919054 0.268991 -2.82939 0.388543 -2.82939C0.468244 -2.82939 0.488169 -2.86924 0.547945 -2.948941C1.036115 -3.716065 1.613948 -3.716065 1.8132 -3.716065H2.381071C2.062267 -2.510585 1.524284 -1.305106 1.105853 -0.398506C1.026152 -0.249066 1.026152 -0.229141 1.026152 -0.159402C1.026152 0.029888 1.185554 0.109589 1.315068 0.109589C1.613948 0.109589 1.693649 -0.169365 1.8132 -0.537983C1.952677 -0.996264 1.952677 -1.016189 2.082192 -1.514321L2.6401 -3.716065Z' id='g1-25'/>
-<path d='M0.876712 -0.587796C0.846824 -0.438356 0.787049 -0.209215 0.787049 -0.159402C0.787049 0.019925 0.926526 0.109589 1.075965 0.109589C1.195517 0.109589 1.374844 0.029888 1.444583 -0.169365C1.454545 -0.18929 1.574097 -0.657534 1.633873 -0.9066L1.853051 -1.803238C1.912827 -2.022416 1.972603 -2.241594 2.022416 -2.470735C2.062267 -2.6401 2.141968 -2.929016 2.15193 -2.968867C2.30137 -3.277709 2.82939 -4.184309 3.775841 -4.184309C4.224159 -4.184309 4.313823 -3.815691 4.313823 -3.486924C4.313823 -2.86924 3.825654 -1.594022 3.666252 -1.165629C3.576588 -0.936488 3.566625 -0.816936 3.566625 -0.707347C3.566625 -0.239103 3.915318 0.109589 4.383562 0.109589C5.32005 0.109589 5.688667 -1.344956 5.688667 -1.424658C5.688667 -1.524284 5.599004 -1.524284 5.569116 -1.524284C5.469489 -1.524284 5.469489 -1.494396 5.419676 -1.344956C5.220423 -0.667497 4.891656 -0.109589 4.403487 -0.109589C4.234122 -0.109589 4.164384 -0.209215 4.164384 -0.438356C4.164384 -0.687422 4.254047 -0.926526 4.343711 -1.145704C4.533001 -1.673724 4.951432 -2.769614 4.951432 -3.337484C4.951432 -4.004981 4.523039 -4.403487 3.805729 -4.403487C2.909091 -4.403487 2.420922 -3.765878 2.251557 -3.536737C2.201743 -4.094645 1.793275 -4.403487 1.334994 -4.403487S0.687422 -4.014944 0.587796 -3.835616C0.428394 -3.496887 0.288917 -2.909091 0.288917 -2.86924C0.288917 -2.769614 0.388543 -2.769614 0.408468 -2.769614C0.508095 -2.769614 0.518057 -2.779577 0.577833 -2.998755C0.747198 -3.706102 0.946451 -4.184309 1.305106 -4.184309C1.504359 -4.184309 1.613948 -4.054795 1.613948 -3.726027C1.613948 -3.516812 1.58406 -3.407223 1.454545 -2.889166L0.876712 -0.587796Z' id='g1-110'/>
-<path d='M4.030884 -1.910834C3.66127 -2.343213 3.549689 -2.461768 3.284682 -2.650062C2.859278 -2.956912 2.412951 -3.075467 2.02939 -3.075467C1.164633 -3.075467 0.536986 -2.336239 0.536986 -1.499377C0.536986 -0.683437 1.136737 0.069738 2.008468 0.069738C2.977833 0.069738 3.654296 -0.72528 3.905355 -1.094894C4.274969 -0.662516 4.38655 -0.54396 4.651557 -0.355666C5.076961 -0.048817 5.523288 0.069738 5.906849 0.069738C6.771606 0.069738 7.399253 -0.669489 7.399253 -1.506351C7.399253 -2.322291 6.799502 -3.075467 5.927771 -3.075467C4.958406 -3.075467 4.281943 -2.280448 4.030884 -1.910834ZM4.254047 -1.652802C4.533001 -2.106102 5.139726 -2.810461 5.990535 -2.810461C6.708842 -2.810461 7.203985 -2.175841 7.203985 -1.506351S6.660025 -0.313823 6.018431 -0.313823C5.369863 -0.313823 4.923537 -0.843836 4.254047 -1.652802ZM3.682192 -1.352927C3.403238 -0.899626 2.796513 -0.195268 1.945704 -0.195268C1.227397 -0.195268 0.732254 -0.829888 0.732254 -1.499377S1.276214 -2.691905 1.917808 -2.691905C2.566376 -2.691905 3.012702 -2.161893 3.682192 -1.352927Z' id='g0-49'/>
-</defs>
-<g id='page1'>
-<use x='147.543833' xlink:href='#g0-49' y='-12.453346'/>
-<use x='144.319808' xlink:href='#g5-88' y='-9.464569'/>
-<use x='144.009023' xlink:href='#g2-110' y='11.634198'/>
-<use x='148.933886' xlink:href='#g4-61' y='11.634198'/>
-<use x='155.04987' xlink:href='#g4-49' y='11.634198'/>
-<use x='164.610996' xlink:href='#g3-49' y='-6.739801'/>
-<rect height='0.398484' width='10.449295' x='161.877016' y='-2.68991'/>
-<use x='161.877016' xlink:href='#g1-110' y='6.83387'/>
-<use x='167.856941' xlink:href='#g4-50' y='3.955777'/>
-<use x='176.289157' xlink:href='#g3-61' y='0'/>
-<use x='188.000751' xlink:href='#g1-25' y='-6.739801'/>
-<use x='194.037167' xlink:href='#g4-50' y='-10.355165'/>
-<rect height='0.398484' width='10.505785' x='188.000751' y='-2.68991'/>
-<use x='190.762975' xlink:href='#g3-54' y='6.83387'/>
-</g>
-</svg>
\ No newline at end of file
diff --git a/tests/tests_cache/writing/TexMobjectTest/Tex/9dc92f13c3a3a7dc.tex b/tests/tests_cache/writing/TexMobjectTest/Tex/9dc92f13c3a3a7dc.tex
deleted file mode 100644
index 8c8cb7243..000000000
--- a/tests/tests_cache/writing/TexMobjectTest/Tex/9dc92f13c3a3a7dc.tex
+++ /dev/null
@@ -1,10 +0,0 @@
-\documentclass[preview]{standalone}\usepackage[english]{babel}\usepackage{amsmath}\usepackage{amssymb}\usepackage{dsfont}\usepackage{setspace}\usepackage{tipa}\usepackage{relsize}\usepackage{textcomp}\usepackage{mathrsfs}\usepackage{calligra}\usepackage{wasysym}\usepackage{ragged2e}\usepackage{physics}\usepackage{xcolor}\usepackage{microtype}\usepackage[utf8]{inputenc}\usepackage[T1]{fontenc}\linespread{1}
-\DisableLigatures{encoding = *, family = *}
-
-\begin{document}
-
-\begin{align*}
-\sum_{n=1}^\infty \frac{1}{n^2} = \frac{\pi^2}{6}
-\end{align*}
-
-\end{document}
\ No newline at end of file
diff --git a/tests/tests_cache/writing/TextMobjectTest/Tex/7e6b0636092e00bb.aux b/tests/tests_cache/writing/TextMobjectTest/Tex/7e6b0636092e00bb.aux
deleted file mode 100644
index f23e54680..000000000
--- a/tests/tests_cache/writing/TextMobjectTest/Tex/7e6b0636092e00bb.aux
+++ /dev/null
@@ -1 +0,0 @@
-\relax
diff --git a/tests/tests_cache/writing/TextMobjectTest/Tex/7e6b0636092e00bb.dvi b/tests/tests_cache/writing/TextMobjectTest/Tex/7e6b0636092e00bb.dvi
deleted file mode 100644
index a79af2531..000000000
Binary files a/tests/tests_cache/writing/TextMobjectTest/Tex/7e6b0636092e00bb.dvi and /dev/null differ
diff --git a/tests/tests_cache/writing/TextMobjectTest/Tex/7e6b0636092e00bb.svg b/tests/tests_cache/writing/TextMobjectTest/Tex/7e6b0636092e00bb.svg
deleted file mode 100644
index ffeaaeec4..000000000
--- a/tests/tests_cache/writing/TextMobjectTest/Tex/7e6b0636092e00bb.svg
+++ /dev/null
@@ -1,27 +0,0 @@
-<?xml version='1.0' encoding='UTF-8'?>
-<!-- This file was generated by dvisvgm 2.3.5 -->
-<svg height='6.861476pt' version='1.1' viewBox='0 -6.861476 56.192172 6.861476' width='56.192172pt' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'>
-<defs>
-<path d='M1.305106 -7.13325C1.006227 -7.13325 0.856787 -6.834371 0.856787 -6.575342C0.856787 -6.425903 0.886675 -6.276463 0.896638 -6.136986C0.966376 -5.110834 1.09589 -4.07472 1.165629 -3.048568C1.185554 -2.739726 1.215442 -2.440847 1.24533 -2.132005C1.255293 -2.032379 1.235367 -1.882939 1.364882 -1.872976H1.414695C1.544209 -1.892902 1.514321 -2.072229 1.524284 -2.171856C1.693649 -3.556663 1.763387 -4.951432 1.892902 -6.336239C1.902864 -6.435866 1.912827 -6.525529 1.912827 -6.625156C1.912827 -6.933998 1.673724 -7.143213 1.384807 -7.143213C1.354919 -7.143213 1.334994 -7.13325 1.305106 -7.13325ZM1.305106 -1.05604C1.05604 -1.026152 0.856787 -0.806974 0.856787 -0.537983C0.856787 -0.249066 1.105853 -0.009963 1.384807 -0.009963C1.653798 -0.009963 1.912827 -0.229141 1.912827 -0.537983C1.912827 -0.826899 1.663761 -1.066002 1.384807 -1.066002C1.354919 -1.066002 1.334994 -1.05604 1.305106 -1.05604Z' id='g0-33'/>
-<path d='M0.328767 -6.814446V-6.505604C0.458281 -6.505604 0.587796 -6.515567 0.707347 -6.515567C1.066002 -6.515567 1.354919 -6.465753 1.354919 -6.067248V-0.747198C1.354919 -0.368618 1.026152 -0.308842 0.687422 -0.308842C0.557908 -0.308842 0.438356 -0.318804 0.328767 -0.318804V-0.009963H3.267746V-0.318804H2.929016C2.510585 -0.318804 2.241594 -0.33873 2.241594 -0.757161V-3.39726H5.220423V-0.757161C5.220423 -0.358655 4.881694 -0.318804 4.523039 -0.318804H4.194271V-0.009963H7.13325V-0.318804C7.013699 -0.318804 6.884184 -0.308842 6.764633 -0.308842C6.41594 -0.308842 6.107098 -0.358655 6.107098 -0.747198V-6.067248C6.107098 -6.455791 6.425903 -6.515567 6.764633 -6.515567C6.894147 -6.515567 7.023661 -6.505604 7.13325 -6.505604V-6.814446H4.194271V-6.505604H4.533001C4.951432 -6.505604 5.220423 -6.485679 5.220423 -6.067248V-3.706102H2.241594V-6.067248C2.241594 -6.465753 2.580324 -6.505604 2.938979 -6.505604H3.267746V-6.814446H0.328767Z' id='g0-72'/>
-<path d='M3.028643 -6.814446V-6.505604H3.188045C3.536737 -6.505604 3.805729 -6.465753 3.805729 -5.88792L3.795766 -3.795766C3.556663 -4.194271 2.988792 -4.403487 2.530511 -4.403487C1.305106 -4.403487 0.328767 -3.347447 0.328767 -2.141968C0.328767 -1.075965 1.145704 0.099626 2.460772 0.099626C2.978829 0.099626 3.447073 -0.14944 3.775841 -0.547945V0.099626L5.250311 -0.009963V-0.318804H5.080946C4.772105 -0.318804 4.473225 -0.348692 4.473225 -0.816936V-6.924035L3.028643 -6.814446ZM1.165629 -1.902864V-2.052304C1.165629 -2.789539 1.255293 -3.536737 1.942715 -3.995019C2.141968 -4.11457 2.371108 -4.184309 2.600249 -4.184309C3.088418 -4.184309 3.785803 -3.785803 3.785803 -3.158157C3.785803 -3.028643 3.775841 -2.899128 3.775841 -2.769614V-1.115816C3.775841 -0.986301 3.726027 -0.896638 3.656289 -0.797011C3.39726 -0.408468 2.968867 -0.119552 2.500623 -0.119552C1.77335 -0.119552 1.315068 -0.787049 1.205479 -1.474471C1.185554 -1.613948 1.185554 -1.763387 1.165629 -1.902864Z' id='g0-100'/>
-<path d='M1.115816 -2.311333H3.985056C4.094645 -2.311333 4.144458 -2.381071 4.144458 -2.49066C4.144458 -3.5467 3.496887 -4.463263 2.381071 -4.463263C1.155666 -4.463263 0.278954 -3.377335 0.278954 -2.191781C0.278954 -1.275218 0.787049 -0.458281 1.663761 -0.059776C1.892902 0.039851 2.161893 0.099626 2.410959 0.099626H2.440847C3.20797 0.099626 3.845579 -0.328767 4.11457 -1.09589C4.124533 -1.125778 4.124533 -1.165629 4.124533 -1.195517C4.124533 -1.265255 4.084682 -1.315068 4.014944 -1.315068C3.865504 -1.315068 3.805729 -0.986301 3.745953 -0.876712C3.496887 -0.438356 3.01868 -0.14944 2.500623 -0.14944C2.132005 -0.14944 1.8132 -0.358655 1.544209 -0.627646C1.145704 -1.085928 1.115816 -1.733499 1.115816 -2.311333ZM1.125778 -2.520548C1.125778 -3.287671 1.534247 -4.244085 2.351183 -4.244085H2.400996C3.377335 -4.154421 3.367372 -3.118306 3.466999 -2.520548H1.125778Z' id='g0-101'/>
-<path d='M0.328767 -6.814446V-6.505604H0.478207C0.846824 -6.505604 1.105853 -6.465753 1.105853 -5.987547V-0.956413C1.105853 -0.886675 1.115816 -0.816936 1.115816 -0.737235C1.115816 -0.358655 0.846824 -0.318804 0.56787 -0.318804H0.328767V-0.009963H2.550436V-0.318804H2.30137C2.012453 -0.318804 1.77335 -0.358655 1.77335 -0.747198V-6.924035L0.328767 -6.814446Z' id='g0-108'/>
-<path d='M2.34122 -4.463263C1.085928 -4.333748 0.278954 -3.277709 0.278954 -2.122042C0.278954 -0.996264 1.165629 0.099626 2.49066 0.099626C3.686177 0.099626 4.692403 -0.876712 4.692403 -2.132005C4.692403 -3.317559 3.795766 -4.473225 2.470735 -4.473225C2.430884 -4.473225 2.381071 -4.463263 2.34122 -4.463263ZM1.115816 -1.892902V-2.331258C1.115816 -3.088418 1.354919 -4.244085 2.480697 -4.244085C3.287671 -4.244085 3.745953 -3.566625 3.835616 -2.809465C3.855542 -2.590286 3.855542 -2.381071 3.855542 -2.161893C3.855542 -1.514321 3.785803 -0.707347 3.148194 -0.33873C2.948941 -0.209215 2.729763 -0.14944 2.500623 -0.14944C1.77335 -0.14944 1.265255 -0.71731 1.155666 -1.494396C1.135741 -1.62391 1.135741 -1.763387 1.115816 -1.892902Z' id='g0-111'/>
-<path d='M0.268991 -4.293898V-3.985056H0.418431C0.747198 -3.985056 1.046077 -3.955168 1.046077 -3.486924V-0.737235C1.046077 -0.328767 0.767123 -0.318804 0.328767 -0.318804H0.268991V-0.009963H2.67995V-0.318804C2.560399 -0.318804 2.420922 -0.308842 2.30137 -0.308842C1.982565 -0.308842 1.713574 -0.358655 1.713574 -0.727273V-2.052304C1.713574 -2.899128 1.912827 -4.184309 2.889166 -4.184309C2.929016 -4.184309 2.958904 -4.184309 2.998755 -4.174346V-4.164384C2.849315 -4.104608 2.769614 -3.945205 2.769614 -3.785803C2.769614 -3.556663 2.919054 -3.39726 3.148194 -3.35741C3.437111 -3.35741 3.626401 -3.536737 3.626401 -3.785803C3.626401 -4.184309 3.247821 -4.403487 2.889166 -4.403487C2.30137 -4.403487 1.77335 -3.875467 1.673724 -3.337484L1.663761 -4.403487L0.268991 -4.293898Z' id='g0-114'/>
-<path d='M0.179328 -4.293898V-3.985056H0.328767C0.846824 -3.985056 0.86675 -3.765878 1.115816 -3.058531C1.364882 -2.371108 1.62391 -1.683686 1.863014 -0.996264L2.161893 -0.159402C2.201743 -0.049813 2.231631 0.089664 2.371108 0.099626H2.391034C2.610212 0.099626 2.749689 -0.56787 2.879203 -0.896638C3.058531 -1.424658 3.247821 -1.952677 3.447073 -2.480697C3.496887 -2.620174 3.556663 -2.759651 3.58655 -2.899128H3.596513C3.626401 -2.759651 3.686177 -2.620174 3.73599 -2.480697L4.024907 -1.673724C4.204234 -1.155666 4.403487 -0.647572 4.582814 -0.129514C4.622665 -0.019925 4.662516 0.099626 4.801993 0.099626C5.021171 0.099626 5.190535 -0.607721 5.310087 -0.966376L5.877958 -2.550436C6.107098 -3.178082 6.246575 -3.985056 7.003736 -3.985056V-4.293898H5.3599V-3.985056C5.618929 -3.975093 5.897883 -3.835616 5.927771 -3.556663C5.927771 -3.277709 5.758406 -2.958904 5.668742 -2.699875C5.50934 -2.271482 5.3599 -1.843088 5.210461 -1.414695C5.13076 -1.205479 5.031133 -0.986301 4.98132 -0.767123H4.971357C4.921544 -1.006227 4.79203 -1.305106 4.692403 -1.554172C4.463263 -2.201743 4.224159 -2.839352 4.004981 -3.496887C3.975093 -3.566625 3.945205 -3.646326 3.945205 -3.726027V-3.765878C3.995019 -3.985056 4.323786 -3.985056 4.523039 -3.985056V-4.293898H2.590286V-3.985056H2.769614C3.158157 -3.985056 3.247821 -3.835616 3.377335 -3.496887C3.39726 -3.427148 3.447073 -3.337484 3.447073 -3.257783C3.437111 -3.16812 3.387298 -3.068493 3.35741 -2.988792L2.789539 -1.404732C2.729763 -1.235367 2.67995 -1.066002 2.610212 -0.9066C2.49066 -1.165629 2.410959 -1.454545 2.311333 -1.723537C2.161893 -2.15193 2.002491 -2.580324 1.853051 -3.008717L1.673724 -3.516812C1.653798 -3.576588 1.613948 -3.646326 1.613948 -3.716065C1.613948 -3.975093 1.982565 -3.985056 2.201743 -3.985056V-4.293898H0.179328Z' id='g0-119'/>
-</defs>
-<g id='page1'>
-<use x='0' xlink:href='#g0-72' y='0'/>
-<use x='7.470156' xlink:href='#g0-101' y='0'/>
-<use x='11.896915' xlink:href='#g0-108' y='0'/>
-<use x='14.663639' xlink:href='#g0-108' y='0'/>
-<use x='17.430364' xlink:href='#g0-111' y='0'/>
-<use x='25.730537' xlink:href='#g0-119' y='0'/>
-<use x='32.92402' xlink:href='#g0-111' y='0'/>
-<use x='37.904124' xlink:href='#g0-114' y='0'/>
-<use x='41.805206' xlink:href='#g0-108' y='0'/>
-<use x='44.57193' xlink:href='#g0-100' y='0'/>
-<use x='53.425448' xlink:href='#g0-33' y='0'/>
-</g>
-</svg>
\ No newline at end of file
diff --git a/tests/tests_cache/writing/TextMobjectTest/Tex/7e6b0636092e00bb.tex b/tests/tests_cache/writing/TextMobjectTest/Tex/7e6b0636092e00bb.tex
deleted file mode 100644
index 15a6638ef..000000000
--- a/tests/tests_cache/writing/TextMobjectTest/Tex/7e6b0636092e00bb.tex
+++ /dev/null
@@ -1,8 +0,0 @@
-\documentclass[preview]{standalone}\usepackage[english]{babel}\usepackage{amsmath}\usepackage{amssymb}\usepackage{dsfont}\usepackage{setspace}\usepackage{tipa}\usepackage{relsize}\usepackage{textcomp}\usepackage{mathrsfs}\usepackage{calligra}\usepackage{wasysym}\usepackage{ragged2e}\usepackage{physics}\usepackage{xcolor}\usepackage{microtype}\usepackage[utf8]{inputenc}\usepackage[T1]{fontenc}\linespread{1}
-\DisableLigatures{encoding = *, family = *}
-
-\begin{document}
-
-Hello world !
-
-\end{document}
\ No newline at end of file
diff --git a/tests/tests_cache/writing/TextMobjectTest/Tex/8d41b553b1b4e5eb.aux b/tests/tests_cache/writing/TextMobjectTest/Tex/8d41b553b1b4e5eb.aux
deleted file mode 100644
index f23e54680..000000000
--- a/tests/tests_cache/writing/TextMobjectTest/Tex/8d41b553b1b4e5eb.aux
+++ /dev/null
@@ -1 +0,0 @@
-\relax
diff --git a/tests/tests_cache/writing/TextMobjectTest/Tex/8d41b553b1b4e5eb.dvi b/tests/tests_cache/writing/TextMobjectTest/Tex/8d41b553b1b4e5eb.dvi
deleted file mode 100644
index 26f48dea0..000000000
Binary files a/tests/tests_cache/writing/TextMobjectTest/Tex/8d41b553b1b4e5eb.dvi and /dev/null differ
diff --git a/tests/tests_cache/writing/TextMobjectTest/Tex/8d41b553b1b4e5eb.svg b/tests/tests_cache/writing/TextMobjectTest/Tex/8d41b553b1b4e5eb.svg
deleted file mode 100644
index b5fbcd96a..000000000
--- a/tests/tests_cache/writing/TextMobjectTest/Tex/8d41b553b1b4e5eb.svg
+++ /dev/null
@@ -1,27 +0,0 @@
-<?xml version='1.0' encoding='UTF-8'?>
-<!-- This file was generated by dvisvgm 2.3.5 -->
-<svg height='6.861476pt' version='1.1' viewBox='143.898901 -6.861476 56.192172 6.861476' width='56.192172pt' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'>
-<defs>
-<path d='M1.305106 -7.13325C1.006227 -7.13325 0.856787 -6.834371 0.856787 -6.575342C0.856787 -6.425903 0.886675 -6.276463 0.896638 -6.136986C0.966376 -5.110834 1.09589 -4.07472 1.165629 -3.048568C1.185554 -2.739726 1.215442 -2.440847 1.24533 -2.132005C1.255293 -2.032379 1.235367 -1.882939 1.364882 -1.872976H1.414695C1.544209 -1.892902 1.514321 -2.072229 1.524284 -2.171856C1.693649 -3.556663 1.763387 -4.951432 1.892902 -6.336239C1.902864 -6.435866 1.912827 -6.525529 1.912827 -6.625156C1.912827 -6.933998 1.673724 -7.143213 1.384807 -7.143213C1.354919 -7.143213 1.334994 -7.13325 1.305106 -7.13325ZM1.305106 -1.05604C1.05604 -1.026152 0.856787 -0.806974 0.856787 -0.537983C0.856787 -0.249066 1.105853 -0.009963 1.384807 -0.009963C1.653798 -0.009963 1.912827 -0.229141 1.912827 -0.537983C1.912827 -0.826899 1.663761 -1.066002 1.384807 -1.066002C1.354919 -1.066002 1.334994 -1.05604 1.305106 -1.05604Z' id='g0-33'/>
-<path d='M0.328767 -6.814446V-6.505604C0.458281 -6.505604 0.587796 -6.515567 0.707347 -6.515567C1.066002 -6.515567 1.354919 -6.465753 1.354919 -6.067248V-0.747198C1.354919 -0.368618 1.026152 -0.308842 0.687422 -0.308842C0.557908 -0.308842 0.438356 -0.318804 0.328767 -0.318804V-0.009963H3.267746V-0.318804H2.929016C2.510585 -0.318804 2.241594 -0.33873 2.241594 -0.757161V-3.39726H5.220423V-0.757161C5.220423 -0.358655 4.881694 -0.318804 4.523039 -0.318804H4.194271V-0.009963H7.13325V-0.318804C7.013699 -0.318804 6.884184 -0.308842 6.764633 -0.308842C6.41594 -0.308842 6.107098 -0.358655 6.107098 -0.747198V-6.067248C6.107098 -6.455791 6.425903 -6.515567 6.764633 -6.515567C6.894147 -6.515567 7.023661 -6.505604 7.13325 -6.505604V-6.814446H4.194271V-6.505604H4.533001C4.951432 -6.505604 5.220423 -6.485679 5.220423 -6.067248V-3.706102H2.241594V-6.067248C2.241594 -6.465753 2.580324 -6.505604 2.938979 -6.505604H3.267746V-6.814446H0.328767Z' id='g0-72'/>
-<path d='M3.028643 -6.814446V-6.505604H3.188045C3.536737 -6.505604 3.805729 -6.465753 3.805729 -5.88792L3.795766 -3.795766C3.556663 -4.194271 2.988792 -4.403487 2.530511 -4.403487C1.305106 -4.403487 0.328767 -3.347447 0.328767 -2.141968C0.328767 -1.075965 1.145704 0.099626 2.460772 0.099626C2.978829 0.099626 3.447073 -0.14944 3.775841 -0.547945V0.099626L5.250311 -0.009963V-0.318804H5.080946C4.772105 -0.318804 4.473225 -0.348692 4.473225 -0.816936V-6.924035L3.028643 -6.814446ZM1.165629 -1.902864V-2.052304C1.165629 -2.789539 1.255293 -3.536737 1.942715 -3.995019C2.141968 -4.11457 2.371108 -4.184309 2.600249 -4.184309C3.088418 -4.184309 3.785803 -3.785803 3.785803 -3.158157C3.785803 -3.028643 3.775841 -2.899128 3.775841 -2.769614V-1.115816C3.775841 -0.986301 3.726027 -0.896638 3.656289 -0.797011C3.39726 -0.408468 2.968867 -0.119552 2.500623 -0.119552C1.77335 -0.119552 1.315068 -0.787049 1.205479 -1.474471C1.185554 -1.613948 1.185554 -1.763387 1.165629 -1.902864Z' id='g0-100'/>
-<path d='M1.115816 -2.311333H3.985056C4.094645 -2.311333 4.144458 -2.381071 4.144458 -2.49066C4.144458 -3.5467 3.496887 -4.463263 2.381071 -4.463263C1.155666 -4.463263 0.278954 -3.377335 0.278954 -2.191781C0.278954 -1.275218 0.787049 -0.458281 1.663761 -0.059776C1.892902 0.039851 2.161893 0.099626 2.410959 0.099626H2.440847C3.20797 0.099626 3.845579 -0.328767 4.11457 -1.09589C4.124533 -1.125778 4.124533 -1.165629 4.124533 -1.195517C4.124533 -1.265255 4.084682 -1.315068 4.014944 -1.315068C3.865504 -1.315068 3.805729 -0.986301 3.745953 -0.876712C3.496887 -0.438356 3.01868 -0.14944 2.500623 -0.14944C2.132005 -0.14944 1.8132 -0.358655 1.544209 -0.627646C1.145704 -1.085928 1.115816 -1.733499 1.115816 -2.311333ZM1.125778 -2.520548C1.125778 -3.287671 1.534247 -4.244085 2.351183 -4.244085H2.400996C3.377335 -4.154421 3.367372 -3.118306 3.466999 -2.520548H1.125778Z' id='g0-101'/>
-<path d='M0.328767 -6.814446V-6.505604H0.478207C0.846824 -6.505604 1.105853 -6.465753 1.105853 -5.987547V-0.956413C1.105853 -0.886675 1.115816 -0.816936 1.115816 -0.737235C1.115816 -0.358655 0.846824 -0.318804 0.56787 -0.318804H0.328767V-0.009963H2.550436V-0.318804H2.30137C2.012453 -0.318804 1.77335 -0.358655 1.77335 -0.747198V-6.924035L0.328767 -6.814446Z' id='g0-108'/>
-<path d='M2.34122 -4.463263C1.085928 -4.333748 0.278954 -3.277709 0.278954 -2.122042C0.278954 -0.996264 1.165629 0.099626 2.49066 0.099626C3.686177 0.099626 4.692403 -0.876712 4.692403 -2.132005C4.692403 -3.317559 3.795766 -4.473225 2.470735 -4.473225C2.430884 -4.473225 2.381071 -4.463263 2.34122 -4.463263ZM1.115816 -1.892902V-2.331258C1.115816 -3.088418 1.354919 -4.244085 2.480697 -4.244085C3.287671 -4.244085 3.745953 -3.566625 3.835616 -2.809465C3.855542 -2.590286 3.855542 -2.381071 3.855542 -2.161893C3.855542 -1.514321 3.785803 -0.707347 3.148194 -0.33873C2.948941 -0.209215 2.729763 -0.14944 2.500623 -0.14944C1.77335 -0.14944 1.265255 -0.71731 1.155666 -1.494396C1.135741 -1.62391 1.135741 -1.763387 1.115816 -1.892902Z' id='g0-111'/>
-<path d='M0.268991 -4.293898V-3.985056H0.418431C0.747198 -3.985056 1.046077 -3.955168 1.046077 -3.486924V-0.737235C1.046077 -0.328767 0.767123 -0.318804 0.328767 -0.318804H0.268991V-0.009963H2.67995V-0.318804C2.560399 -0.318804 2.420922 -0.308842 2.30137 -0.308842C1.982565 -0.308842 1.713574 -0.358655 1.713574 -0.727273V-2.052304C1.713574 -2.899128 1.912827 -4.184309 2.889166 -4.184309C2.929016 -4.184309 2.958904 -4.184309 2.998755 -4.174346V-4.164384C2.849315 -4.104608 2.769614 -3.945205 2.769614 -3.785803C2.769614 -3.556663 2.919054 -3.39726 3.148194 -3.35741C3.437111 -3.35741 3.626401 -3.536737 3.626401 -3.785803C3.626401 -4.184309 3.247821 -4.403487 2.889166 -4.403487C2.30137 -4.403487 1.77335 -3.875467 1.673724 -3.337484L1.663761 -4.403487L0.268991 -4.293898Z' id='g0-114'/>
-<path d='M0.179328 -4.293898V-3.985056H0.328767C0.846824 -3.985056 0.86675 -3.765878 1.115816 -3.058531C1.364882 -2.371108 1.62391 -1.683686 1.863014 -0.996264L2.161893 -0.159402C2.201743 -0.049813 2.231631 0.089664 2.371108 0.099626H2.391034C2.610212 0.099626 2.749689 -0.56787 2.879203 -0.896638C3.058531 -1.424658 3.247821 -1.952677 3.447073 -2.480697C3.496887 -2.620174 3.556663 -2.759651 3.58655 -2.899128H3.596513C3.626401 -2.759651 3.686177 -2.620174 3.73599 -2.480697L4.024907 -1.673724C4.204234 -1.155666 4.403487 -0.647572 4.582814 -0.129514C4.622665 -0.019925 4.662516 0.099626 4.801993 0.099626C5.021171 0.099626 5.190535 -0.607721 5.310087 -0.966376L5.877958 -2.550436C6.107098 -3.178082 6.246575 -3.985056 7.003736 -3.985056V-4.293898H5.3599V-3.985056C5.618929 -3.975093 5.897883 -3.835616 5.927771 -3.556663C5.927771 -3.277709 5.758406 -2.958904 5.668742 -2.699875C5.50934 -2.271482 5.3599 -1.843088 5.210461 -1.414695C5.13076 -1.205479 5.031133 -0.986301 4.98132 -0.767123H4.971357C4.921544 -1.006227 4.79203 -1.305106 4.692403 -1.554172C4.463263 -2.201743 4.224159 -2.839352 4.004981 -3.496887C3.975093 -3.566625 3.945205 -3.646326 3.945205 -3.726027V-3.765878C3.995019 -3.985056 4.323786 -3.985056 4.523039 -3.985056V-4.293898H2.590286V-3.985056H2.769614C3.158157 -3.985056 3.247821 -3.835616 3.377335 -3.496887C3.39726 -3.427148 3.447073 -3.337484 3.447073 -3.257783C3.437111 -3.16812 3.387298 -3.068493 3.35741 -2.988792L2.789539 -1.404732C2.729763 -1.235367 2.67995 -1.066002 2.610212 -0.9066C2.49066 -1.165629 2.410959 -1.454545 2.311333 -1.723537C2.161893 -2.15193 2.002491 -2.580324 1.853051 -3.008717L1.673724 -3.516812C1.653798 -3.576588 1.613948 -3.646326 1.613948 -3.716065C1.613948 -3.975093 1.982565 -3.985056 2.201743 -3.985056V-4.293898H0.179328Z' id='g0-119'/>
-</defs>
-<g id='page1'>
-<use x='143.898901' xlink:href='#g0-72' y='0'/>
-<use x='151.369057' xlink:href='#g0-101' y='0'/>
-<use x='155.795816' xlink:href='#g0-108' y='0'/>
-<use x='158.562541' xlink:href='#g0-108' y='0'/>
-<use x='161.329265' xlink:href='#g0-111' y='0'/>
-<use x='169.629438' xlink:href='#g0-119' y='0'/>
-<use x='176.822922' xlink:href='#g0-111' y='0'/>
-<use x='181.803026' xlink:href='#g0-114' y='0'/>
-<use x='185.704107' xlink:href='#g0-108' y='0'/>
-<use x='188.470831' xlink:href='#g0-100' y='0'/>
-<use x='197.324349' xlink:href='#g0-33' y='0'/>
-</g>
-</svg>
\ No newline at end of file
diff --git a/tests/tests_cache/writing/TextMobjectTest/Tex/8d41b553b1b4e5eb.tex b/tests/tests_cache/writing/TextMobjectTest/Tex/8d41b553b1b4e5eb.tex
deleted file mode 100644
index 3b999956a..000000000
--- a/tests/tests_cache/writing/TextMobjectTest/Tex/8d41b553b1b4e5eb.tex
+++ /dev/null
@@ -1,8 +0,0 @@
-\documentclass[preview]{standalone}\usepackage[english]{babel}\usepackage{amsmath}\usepackage{amssymb}\usepackage{dsfont}\usepackage{setspace}\usepackage{tipa}\usepackage{relsize}\usepackage{textcomp}\usepackage{mathrsfs}\usepackage{calligra}\usepackage{wasysym}\usepackage{ragged2e}\usepackage{physics}\usepackage{xcolor}\usepackage{microtype}\usepackage[utf8]{inputenc}\usepackage[T1]{fontenc}\linespread{1}
-\DisableLigatures{encoding = *, family = *}
-
-\begin{document}
-
-\centering Hello world !
-
-\end{document}
\ No newline at end of file
diff --git a/tests/tests_cache/writing/TextTest/Text/1d47a07ea0ff0ea8.svg b/tests/tests_cache/writing/TextTest/Text/1d47a07ea0ff0ea8.svg
deleted file mode 100644
index ab8ad5aee..000000000
--- a/tests/tests_cache/writing/TextTest/Text/1d47a07ea0ff0ea8.svg
+++ /dev/null
@@ -1,30 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="600pt" height="400pt" viewBox="0 0 600 400" version="1.1">
-<defs>
-<g>
-<symbol overflow="visible" id="glyph0-0">
-<path style="stroke:none;" d="M 1.25 0 L 1.25 -6.25 L 6.25 -6.25 L 6.25 0 Z M 1.40625 -0.15625 L 6.09375 -0.15625 L 6.09375 -6.09375 L 1.40625 -6.09375 Z "/>
-</symbol>
-<symbol overflow="visible" id="glyph0-1">
-<path style="stroke:none;" d="M 0.734375 0 L 0.734375 -7.15625 L 3.417969 -7.15625 C 3.960938 -7.152344 4.402344 -7.082031 4.734375 -6.9375 C 5.0625 -6.792969 5.320313 -6.570313 5.507813 -6.269531 C 5.695313 -5.96875 5.789063 -5.652344 5.789063 -5.328125 C 5.789063 -5.015625 5.703125 -4.726563 5.539063 -4.460938 C 5.371094 -4.1875 5.121094 -3.972656 4.789063 -3.808594 C 5.21875 -3.679688 5.550781 -3.460938 5.785156 -3.15625 C 6.015625 -2.847656 6.132813 -2.488281 6.136719 -2.074219 C 6.132813 -1.738281 6.0625 -1.425781 5.921875 -1.136719 C 5.777344 -0.847656 5.601563 -0.625 5.398438 -0.472656 C 5.1875 -0.3125 4.925781 -0.195313 4.613281 -0.117188 C 4.296875 -0.0390625 3.914063 0 3.460938 0 Z M 1.679688 -4.148438 L 3.226563 -4.148438 C 3.644531 -4.148438 3.945313 -4.175781 4.132813 -4.234375 C 4.367188 -4.300781 4.550781 -4.417969 4.675781 -4.589844 C 4.796875 -4.753906 4.855469 -4.964844 4.859375 -5.214844 C 4.855469 -5.449219 4.800781 -5.65625 4.6875 -5.839844 C 4.570313 -6.019531 4.40625 -6.144531 4.199219 -6.210938 C 3.984375 -6.277344 3.621094 -6.308594 3.109375 -6.3125 L 1.679688 -6.3125 Z M 1.679688 -0.84375 L 3.460938 -0.84375 C 3.765625 -0.84375 3.980469 -0.855469 4.105469 -0.878906 C 4.320313 -0.917969 4.503906 -0.980469 4.652344 -1.074219 C 4.800781 -1.160156 4.921875 -1.292969 5.015625 -1.472656 C 5.109375 -1.644531 5.15625 -1.847656 5.15625 -2.074219 C 5.15625 -2.339844 5.085938 -2.570313 4.949219 -2.769531 C 4.8125 -2.964844 4.625 -3.101563 4.382813 -3.183594 C 4.140625 -3.261719 3.789063 -3.304688 3.335938 -3.304688 L 1.679688 -3.304688 Z "/>
-</symbol>
-<symbol overflow="visible" id="glyph0-2">
-<path style="stroke:none;" d="M 0.664063 -6.148438 L 0.664063 -7.15625 L 1.542969 -7.15625 L 1.542969 -6.148438 Z M 0.664063 0 L 0.664063 -5.1875 L 1.542969 -5.1875 L 1.542969 0 Z "/>
-</symbol>
-<symbol overflow="visible" id="glyph0-3">
-<path style="stroke:none;" d="M 2.578125 -0.785156 L 2.703125 -0.0078125 C 2.453125 0.046875 2.234375 0.0703125 2.039063 0.0703125 C 1.71875 0.0703125 1.46875 0.0195313 1.296875 -0.0820313 C 1.117188 -0.183594 0.996094 -0.316406 0.925781 -0.480469 C 0.855469 -0.644531 0.820313 -0.988281 0.820313 -1.519531 L 0.820313 -4.5 L 0.175781 -4.5 L 0.175781 -5.1875 L 0.820313 -5.1875 L 0.820313 -6.46875 L 1.695313 -6.996094 L 1.695313 -5.1875 L 2.578125 -5.1875 L 2.578125 -4.5 L 1.695313 -4.5 L 1.695313 -1.46875 C 1.691406 -1.214844 1.707031 -1.054688 1.742188 -0.984375 C 1.769531 -0.914063 1.820313 -0.855469 1.890625 -0.8125 C 1.957031 -0.769531 2.058594 -0.75 2.191406 -0.75 C 2.289063 -0.75 2.417969 -0.761719 2.578125 -0.785156 Z "/>
-</symbol>
-<symbol overflow="visible" id="glyph0-4">
-<path style="stroke:none;" d="M 4.210938 -1.671875 L 5.117188 -1.558594 C 4.96875 -1.027344 4.703125 -0.613281 4.320313 -0.320313 C 3.929688 -0.0273438 3.4375 0.117188 2.835938 0.117188 C 2.078125 0.117188 1.476563 -0.113281 1.03125 -0.582031 C 0.585938 -1.046875 0.363281 -1.703125 0.367188 -2.546875 C 0.363281 -3.417969 0.585938 -4.097656 1.039063 -4.582031 C 1.484375 -5.0625 2.070313 -5.300781 2.789063 -5.304688 C 3.480469 -5.300781 4.046875 -5.066406 4.488281 -4.59375 C 4.925781 -4.121094 5.144531 -3.457031 5.148438 -2.601563 C 5.144531 -2.546875 5.140625 -2.46875 5.140625 -2.367188 L 1.273438 -2.367188 C 1.304688 -1.796875 1.46875 -1.359375 1.757813 -1.058594 C 2.046875 -0.753906 2.40625 -0.601563 2.84375 -0.605469 C 3.160156 -0.601563 3.433594 -0.6875 3.664063 -0.859375 C 3.890625 -1.027344 4.074219 -1.296875 4.210938 -1.671875 Z M 1.324219 -3.089844 L 4.21875 -3.089844 C 4.179688 -3.523438 4.066406 -3.851563 3.886719 -4.070313 C 3.605469 -4.40625 3.242188 -4.574219 2.796875 -4.578125 C 2.390625 -4.574219 2.050781 -4.441406 1.777344 -4.171875 C 1.5 -3.902344 1.351563 -3.539063 1.324219 -3.089844 Z "/>
-</symbol>
-</g>
-</defs>
-<g id="surface78">
-<g style="fill:rgb(0%,0%,0%);fill-opacity:1;">
- <use xlink:href="#glyph0-1" x="30" y="20"/>
- <use xlink:href="#glyph0-2" x="36.669922" y="20"/>
- <use xlink:href="#glyph0-3" x="38.891602" y="20"/>
- <use xlink:href="#glyph0-4" x="41.669922" y="20"/>
-</g>
-</g>
-</svg>
diff --git a/tests/tests_cache/writing/TextTest/Text/770a265b40ff9104.svg b/tests/tests_cache/writing/TextTest/Text/770a265b40ff9104.svg
deleted file mode 100644
index 6f88fbda0..000000000
--- a/tests/tests_cache/writing/TextTest/Text/770a265b40ff9104.svg
+++ /dev/null
@@ -1,39 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="600pt" height="400pt" viewBox="0 0 600 400" version="1.1">
-<defs>
-<g>
-<symbol overflow="visible" id="glyph0-0">
-<path style="stroke:none;" d="M 1.25 0 L 1.25 -6.25 L 6.25 -6.25 L 6.25 0 Z M 1.40625 -0.15625 L 6.09375 -0.15625 L 6.09375 -6.09375 L 1.40625 -6.09375 Z "/>
-</symbol>
-<symbol overflow="visible" id="glyph0-1">
-<path style="stroke:none;" d="M 2.578125 -0.785156 L 2.703125 -0.0078125 C 2.453125 0.046875 2.234375 0.0703125 2.039063 0.0703125 C 1.71875 0.0703125 1.46875 0.0195313 1.296875 -0.0820313 C 1.117188 -0.183594 0.996094 -0.316406 0.925781 -0.480469 C 0.855469 -0.644531 0.820313 -0.988281 0.820313 -1.519531 L 0.820313 -4.5 L 0.175781 -4.5 L 0.175781 -5.1875 L 0.820313 -5.1875 L 0.820313 -6.46875 L 1.695313 -6.996094 L 1.695313 -5.1875 L 2.578125 -5.1875 L 2.578125 -4.5 L 1.695313 -4.5 L 1.695313 -1.46875 C 1.691406 -1.214844 1.707031 -1.054688 1.742188 -0.984375 C 1.769531 -0.914063 1.820313 -0.855469 1.890625 -0.8125 C 1.957031 -0.769531 2.058594 -0.75 2.191406 -0.75 C 2.289063 -0.75 2.417969 -0.761719 2.578125 -0.785156 Z "/>
-</symbol>
-<symbol overflow="visible" id="glyph0-2">
-<path style="stroke:none;" d="M 4.210938 -1.671875 L 5.117188 -1.558594 C 4.96875 -1.027344 4.703125 -0.613281 4.320313 -0.320313 C 3.929688 -0.0273438 3.4375 0.117188 2.835938 0.117188 C 2.078125 0.117188 1.476563 -0.113281 1.03125 -0.582031 C 0.585938 -1.046875 0.363281 -1.703125 0.367188 -2.546875 C 0.363281 -3.417969 0.585938 -4.097656 1.039063 -4.582031 C 1.484375 -5.0625 2.070313 -5.300781 2.789063 -5.304688 C 3.480469 -5.300781 4.046875 -5.066406 4.488281 -4.59375 C 4.925781 -4.121094 5.144531 -3.457031 5.148438 -2.601563 C 5.144531 -2.546875 5.140625 -2.46875 5.140625 -2.367188 L 1.273438 -2.367188 C 1.304688 -1.796875 1.46875 -1.359375 1.757813 -1.058594 C 2.046875 -0.753906 2.40625 -0.601563 2.84375 -0.605469 C 3.160156 -0.601563 3.433594 -0.6875 3.664063 -0.859375 C 3.890625 -1.027344 4.074219 -1.296875 4.210938 -1.671875 Z M 1.324219 -3.089844 L 4.21875 -3.089844 C 4.179688 -3.523438 4.066406 -3.851563 3.886719 -4.070313 C 3.605469 -4.40625 3.242188 -4.574219 2.796875 -4.578125 C 2.390625 -4.574219 2.050781 -4.441406 1.777344 -4.171875 C 1.5 -3.902344 1.351563 -3.539063 1.324219 -3.089844 Z "/>
-</symbol>
-<symbol overflow="visible" id="glyph0-3">
-<path style="stroke:none;" d="M 0.308594 -1.546875 L 1.175781 -1.683594 C 1.222656 -1.332031 1.359375 -1.066406 1.582031 -0.882813 C 1.804688 -0.695313 2.117188 -0.601563 2.519531 -0.605469 C 2.921875 -0.601563 3.21875 -0.683594 3.417969 -0.851563 C 3.609375 -1.011719 3.707031 -1.207031 3.710938 -1.429688 C 3.707031 -1.625 3.621094 -1.78125 3.453125 -1.898438 C 3.328125 -1.976563 3.03125 -2.074219 2.554688 -2.195313 C 1.90625 -2.355469 1.457031 -2.496094 1.210938 -2.617188 C 0.960938 -2.734375 0.773438 -2.898438 0.644531 -3.113281 C 0.515625 -3.320313 0.449219 -3.554688 0.453125 -3.808594 C 0.449219 -4.039063 0.503906 -4.25 0.613281 -4.449219 C 0.71875 -4.644531 0.863281 -4.808594 1.046875 -4.941406 C 1.179688 -5.039063 1.363281 -5.125 1.601563 -5.199219 C 1.835938 -5.265625 2.089844 -5.300781 2.363281 -5.304688 C 2.765625 -5.300781 3.125 -5.242188 3.433594 -5.128906 C 3.742188 -5.007813 3.96875 -4.851563 4.117188 -4.652344 C 4.261719 -4.449219 4.363281 -4.179688 4.417969 -3.847656 L 3.558594 -3.730469 C 3.515625 -3.996094 3.402344 -4.203125 3.21875 -4.355469 C 3.027344 -4.5 2.765625 -4.574219 2.425781 -4.578125 C 2.019531 -4.574219 1.730469 -4.507813 1.5625 -4.378906 C 1.386719 -4.242188 1.300781 -4.085938 1.304688 -3.910156 C 1.300781 -3.792969 1.335938 -3.691406 1.410156 -3.601563 C 1.480469 -3.503906 1.59375 -3.425781 1.75 -3.367188 C 1.832031 -3.332031 2.089844 -3.257813 2.523438 -3.144531 C 3.144531 -2.976563 3.578125 -2.839844 3.824219 -2.734375 C 4.070313 -2.628906 4.261719 -2.476563 4.402344 -2.273438 C 4.539063 -2.070313 4.609375 -1.820313 4.613281 -1.523438 C 4.609375 -1.230469 4.523438 -0.953125 4.355469 -0.695313 C 4.183594 -0.433594 3.9375 -0.234375 3.617188 -0.09375 C 3.289063 0.046875 2.925781 0.117188 2.523438 0.117188 C 1.847656 0.117188 1.335938 -0.0195313 0.984375 -0.300781 C 0.628906 -0.578125 0.402344 -0.996094 0.308594 -1.546875 Z "/>
-</symbol>
-<symbol overflow="visible" id="glyph0-4">
-<path style="stroke:none;" d="M 0.664063 -6.148438 L 0.664063 -7.15625 L 1.542969 -7.15625 L 1.542969 -6.148438 Z M 0.664063 0 L 0.664063 -5.1875 L 1.542969 -5.1875 L 1.542969 0 Z "/>
-</symbol>
-<symbol overflow="visible" id="glyph0-5">
-<path style="stroke:none;" d="M 0.660156 0 L 0.660156 -5.1875 L 1.449219 -5.1875 L 1.449219 -4.449219 C 1.828125 -5.015625 2.378906 -5.300781 3.101563 -5.304688 C 3.410156 -5.300781 3.699219 -5.246094 3.960938 -5.132813 C 4.222656 -5.019531 4.417969 -4.871094 4.550781 -4.691406 C 4.679688 -4.507813 4.769531 -4.292969 4.824219 -4.042969 C 4.855469 -3.878906 4.875 -3.59375 4.875 -3.1875 L 4.875 0 L 3.992188 0 L 3.992188 -3.15625 C 3.988281 -3.511719 3.957031 -3.777344 3.890625 -3.957031 C 3.820313 -4.128906 3.699219 -4.269531 3.527344 -4.378906 C 3.351563 -4.480469 3.144531 -4.535156 2.914063 -4.539063 C 2.535156 -4.535156 2.214844 -4.417969 1.945313 -4.183594 C 1.671875 -3.945313 1.535156 -3.492188 1.539063 -2.832031 L 1.539063 0 Z "/>
-</symbol>
-<symbol overflow="visible" id="glyph0-6">
-<path style="stroke:none;" d="M 0.5 0.429688 L 1.351563 0.554688 C 1.386719 0.816406 1.484375 1.007813 1.648438 1.132813 C 1.863281 1.289063 2.164063 1.371094 2.542969 1.375 C 2.949219 1.371094 3.261719 1.289063 3.488281 1.132813 C 3.707031 0.96875 3.859375 0.742188 3.9375 0.449219 C 3.980469 0.265625 4 -0.109375 4 -0.679688 C 3.613281 -0.226563 3.132813 0 2.5625 0 C 1.84375 0 1.292969 -0.253906 0.90625 -0.769531 C 0.511719 -1.28125 0.316406 -1.898438 0.320313 -2.621094 C 0.316406 -3.113281 0.40625 -3.570313 0.589844 -3.988281 C 0.765625 -4.40625 1.023438 -4.730469 1.367188 -4.960938 C 1.703125 -5.1875 2.105469 -5.300781 2.570313 -5.304688 C 3.175781 -5.300781 3.679688 -5.054688 4.082031 -4.5625 L 4.082031 -5.1875 L 4.890625 -5.1875 L 4.890625 -0.703125 C 4.886719 0.101563 4.804688 0.671875 4.644531 1.011719 C 4.476563 1.347656 4.214844 1.613281 3.863281 1.8125 C 3.503906 2.003906 3.066406 2.101563 2.546875 2.105469 C 1.925781 2.101563 1.425781 1.964844 1.046875 1.6875 C 0.664063 1.40625 0.480469 0.984375 0.5 0.429688 Z M 1.226563 -2.6875 C 1.222656 -2.003906 1.359375 -1.507813 1.628906 -1.195313 C 1.898438 -0.882813 2.238281 -0.726563 2.648438 -0.726563 C 3.046875 -0.726563 3.382813 -0.878906 3.660156 -1.191406 C 3.929688 -1.5 4.066406 -1.988281 4.070313 -2.65625 C 4.066406 -3.289063 3.925781 -3.769531 3.648438 -4.089844 C 3.363281 -4.410156 3.023438 -4.570313 2.632813 -4.574219 C 2.238281 -4.570313 1.90625 -4.410156 1.636719 -4.097656 C 1.359375 -3.777344 1.222656 -3.308594 1.226563 -2.6875 Z "/>
-</symbol>
-</g>
-</defs>
-<g id="surface78">
-<g style="fill:rgb(0%,0%,0%);fill-opacity:1;">
- <use xlink:href="#glyph0-1" x="30" y="20"/>
- <use xlink:href="#glyph0-2" x="32.77832" y="20"/>
- <use xlink:href="#glyph0-3" x="38.339844" y="20"/>
- <use xlink:href="#glyph0-1" x="43.339844" y="20"/>
- <use xlink:href="#glyph0-4" x="46.118164" y="20"/>
- <use xlink:href="#glyph0-5" x="48.339844" y="20"/>
- <use xlink:href="#glyph0-6" x="53.901367" y="20"/>
-</g>
-</g>
-</svg>
diff --git a/tests/tests_cache/writing/TextTest/Text/f3605000a86a4a1c.svg b/tests/tests_cache/writing/TextTest/Text/f3605000a86a4a1c.svg
deleted file mode 100644
index 2c1bc2a9b..000000000
--- a/tests/tests_cache/writing/TextTest/Text/f3605000a86a4a1c.svg
+++ /dev/null
@@ -1,39 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="600pt" height="400pt" viewBox="0 0 600 400" version="1.1">
-<defs>
-<g>
-<symbol overflow="visible" id="glyph0-0">
-<path style="stroke:none;" d="M 1.25 0 L 1.25 -6.25 L 6.25 -6.25 L 6.25 0 Z M 1.40625 -0.15625 L 6.09375 -0.15625 L 6.09375 -6.09375 L 1.40625 -6.09375 Z "/>
-</symbol>
-<symbol overflow="visible" id="glyph0-1">
-<path style="stroke:none;" d="M 2.429688 -7.34375 L 2.429688 -6.324219 L 2.964844 -6.324219 L 2.964844 -5.296875 L 2.429688 -5.296875 L 2.429688 -1.832031 C 2.425781 -1.402344 2.449219 -1.164063 2.496094 -1.117188 C 2.539063 -1.066406 2.722656 -1.042969 3.046875 -1.046875 L 3.046875 0 L 2.25 0 C 1.800781 0 1.480469 -0.015625 1.289063 -0.0546875 C 1.09375 -0.0898438 0.921875 -0.175781 0.78125 -0.3125 C 0.632813 -0.445313 0.542969 -0.601563 0.507813 -0.777344 C 0.46875 -0.949219 0.449219 -1.359375 0.453125 -2.007813 L 0.453125 -5.296875 L 0.03125 -5.296875 L 0.03125 -6.324219 L 0.453125 -6.324219 L 0.453125 -7.34375 Z "/>
-</symbol>
-<symbol overflow="visible" id="glyph0-2">
-<path style="stroke:none;" d="M 4.820313 -3.125 L 2.265625 -3.125 L 2.265625 -1.722656 C 2.261719 -1.429688 2.28125 -1.238281 2.328125 -1.15625 C 2.367188 -1.070313 2.449219 -1.03125 2.574219 -1.03125 C 2.71875 -1.03125 2.820313 -1.085938 2.871094 -1.199219 C 2.921875 -1.308594 2.945313 -1.527344 2.949219 -1.851563 L 2.949219 -2.703125 L 4.820313 -2.703125 L 4.820313 -2.226563 C 4.816406 -1.824219 4.789063 -1.515625 4.742188 -1.300781 C 4.6875 -1.085938 4.570313 -0.855469 4.386719 -0.613281 C 4.199219 -0.367188 3.964844 -0.183594 3.683594 -0.0664063 C 3.398438 0.0585938 3.042969 0.117188 2.613281 0.117188 C 2.195313 0.117188 1.824219 0.0585938 1.507813 -0.0625 C 1.1875 -0.179688 0.941406 -0.34375 0.765625 -0.558594 C 0.585938 -0.765625 0.460938 -1 0.394531 -1.253906 C 0.324219 -1.503906 0.292969 -1.867188 0.292969 -2.351563 L 0.292969 -4.242188 C 0.292969 -4.808594 0.367188 -5.253906 0.519531 -5.582031 C 0.671875 -5.90625 0.921875 -6.15625 1.273438 -6.335938 C 1.617188 -6.507813 2.019531 -6.597656 2.476563 -6.597656 C 3.027344 -6.597656 3.484375 -6.492188 3.84375 -6.28125 C 4.203125 -6.070313 4.453125 -5.789063 4.601563 -5.445313 C 4.742188 -5.09375 4.816406 -4.609375 4.820313 -3.984375 Z M 2.84375 -4.179688 L 2.84375 -4.652344 C 2.839844 -4.988281 2.824219 -5.203125 2.789063 -5.300781 C 2.75 -5.398438 2.675781 -5.449219 2.570313 -5.449219 C 2.429688 -5.449219 2.34375 -5.40625 2.3125 -5.324219 C 2.277344 -5.238281 2.261719 -5.015625 2.265625 -4.652344 L 2.265625 -4.179688 Z "/>
-</symbol>
-<symbol overflow="visible" id="glyph0-3">
-<path style="stroke:none;" d="M 4.378906 -4.410156 L 2.632813 -4.410156 L 2.632813 -4.761719 C 2.628906 -5.058594 2.613281 -5.246094 2.582031 -5.328125 C 2.546875 -5.40625 2.460938 -5.449219 2.324219 -5.449219 C 2.210938 -5.449219 2.128906 -5.410156 2.074219 -5.339844 C 2.019531 -5.261719 1.992188 -5.152344 1.992188 -5.007813 C 1.992188 -4.808594 2.003906 -4.664063 2.03125 -4.570313 C 2.058594 -4.476563 2.140625 -4.375 2.28125 -4.265625 C 2.417969 -4.15625 2.703125 -3.996094 3.132813 -3.785156 C 3.703125 -3.503906 4.078125 -3.238281 4.261719 -2.992188 C 4.4375 -2.742188 4.527344 -2.382813 4.53125 -1.914063 C 4.527344 -1.386719 4.460938 -0.988281 4.324219 -0.71875 C 4.1875 -0.449219 3.957031 -0.242188 3.640625 -0.0976563 C 3.316406 0.046875 2.929688 0.117188 2.480469 0.117188 C 1.972656 0.117188 1.542969 0.0390625 1.191406 -0.117188 C 0.832031 -0.273438 0.589844 -0.484375 0.457031 -0.75 C 0.324219 -1.015625 0.257813 -1.417969 0.257813 -1.960938 L 0.257813 -2.273438 L 2.007813 -2.273438 L 2.007813 -1.867188 C 2.003906 -1.515625 2.027344 -1.289063 2.074219 -1.1875 C 2.117188 -1.082031 2.203125 -1.03125 2.335938 -1.03125 C 2.472656 -1.03125 2.570313 -1.066406 2.625 -1.136719 C 2.679688 -1.207031 2.707031 -1.351563 2.710938 -1.578125 C 2.707031 -1.882813 2.671875 -2.078125 2.601563 -2.15625 C 2.527344 -2.234375 2.144531 -2.464844 1.453125 -2.851563 C 0.875 -3.175781 0.519531 -3.472656 0.394531 -3.738281 C 0.261719 -4.003906 0.199219 -4.316406 0.203125 -4.683594 C 0.199219 -5.199219 0.269531 -5.582031 0.410156 -5.828125 C 0.546875 -6.070313 0.777344 -6.257813 1.105469 -6.394531 C 1.429688 -6.527344 1.808594 -6.597656 2.246094 -6.597656 C 2.671875 -6.597656 3.039063 -6.542969 3.339844 -6.433594 C 3.640625 -6.324219 3.871094 -6.179688 4.035156 -6 C 4.195313 -5.820313 4.292969 -5.652344 4.328125 -5.503906 C 4.359375 -5.347656 4.375 -5.109375 4.378906 -4.785156 Z "/>
-</symbol>
-<symbol overflow="visible" id="glyph0-4">
-<path style="stroke:none;" d="M 2.382813 -7.90625 L 2.382813 -6.875 L 0.351563 -6.875 L 0.351563 -7.90625 Z M 2.382813 -6.480469 L 2.382813 0 L 0.351563 0 L 0.351563 -6.480469 Z "/>
-</symbol>
-<symbol overflow="visible" id="glyph0-5">
-<path style="stroke:none;" d="M 2.359375 -6.480469 L 2.324219 -5.882813 C 2.464844 -6.117188 2.640625 -6.292969 2.847656 -6.417969 C 3.054688 -6.535156 3.292969 -6.597656 3.5625 -6.597656 C 3.898438 -6.597656 4.175781 -6.515625 4.394531 -6.355469 C 4.609375 -6.195313 4.746094 -5.996094 4.808594 -5.753906 C 4.867188 -5.511719 4.898438 -5.105469 4.902344 -4.539063 L 4.902344 0 L 2.929688 0 L 2.929688 -4.488281 C 2.929688 -4.933594 2.914063 -5.203125 2.886719 -5.300781 C 2.855469 -5.398438 2.773438 -5.449219 2.640625 -5.449219 C 2.496094 -5.449219 2.40625 -5.390625 2.375 -5.28125 C 2.335938 -5.164063 2.320313 -4.863281 2.324219 -4.378906 L 2.324219 0 L 0.351563 0 L 0.351563 -6.480469 Z "/>
-</symbol>
-<symbol overflow="visible" id="glyph0-6">
-<path style="stroke:none;" d="M 4.835938 -6.480469 L 4.835938 -1.488281 C 4.832031 -0.8125 4.816406 -0.375 4.789063 -0.179688 C 4.753906 0.015625 4.644531 0.21875 4.457031 0.441406 C 4.265625 0.660156 4.003906 0.828125 3.667969 0.945313 C 3.332031 1.054688 2.90625 1.113281 2.398438 1.117188 C 1.765625 1.113281 1.261719 1.007813 0.882813 0.796875 C 0.5 0.582031 0.304688 0.164063 0.292969 -0.460938 L 2.207031 -0.460938 C 2.203125 -0.171875 2.308594 -0.0273438 2.519531 -0.03125 C 2.667969 -0.0273438 2.765625 -0.0703125 2.816406 -0.160156 C 2.863281 -0.246094 2.886719 -0.433594 2.890625 -0.714844 L 2.890625 -1.203125 C 2.71875 -1.046875 2.542969 -0.933594 2.355469 -0.855469 C 2.167969 -0.777344 1.96875 -0.738281 1.765625 -0.738281 C 1.40625 -0.738281 1.117188 -0.808594 0.890625 -0.953125 C 0.660156 -1.09375 0.5 -1.28125 0.417969 -1.515625 C 0.332031 -1.746094 0.292969 -2.078125 0.292969 -2.507813 L 0.292969 -4.863281 C 0.292969 -5.476563 0.402344 -5.917969 0.625 -6.191406 C 0.84375 -6.460938 1.179688 -6.597656 1.636719 -6.597656 C 1.878906 -6.597656 2.105469 -6.546875 2.3125 -6.445313 C 2.511719 -6.34375 2.691406 -6.191406 2.855469 -5.988281 L 3 -6.480469 Z M 2.855469 -4.761719 C 2.851563 -5.054688 2.835938 -5.242188 2.804688 -5.324219 C 2.769531 -5.40625 2.695313 -5.449219 2.578125 -5.449219 C 2.460938 -5.449219 2.378906 -5.402344 2.335938 -5.308594 C 2.285156 -5.214844 2.261719 -5.03125 2.265625 -4.761719 L 2.265625 -2.582031 C 2.261719 -2.289063 2.28125 -2.101563 2.320313 -2.019531 C 2.355469 -1.929688 2.429688 -1.886719 2.542969 -1.890625 C 2.671875 -1.886719 2.753906 -1.9375 2.796875 -2.046875 C 2.832031 -2.148438 2.851563 -2.386719 2.855469 -2.753906 Z "/>
-</symbol>
-</g>
-</defs>
-<g id="surface77">
-<g style="fill:rgb(0%,0%,0%);fill-opacity:1;">
- <use xlink:href="#glyph0-1" x="30" y="20"/>
- <use xlink:href="#glyph0-2" x="33.046875" y="20"/>
- <use xlink:href="#glyph0-3" x="38.15918" y="20"/>
- <use xlink:href="#glyph0-1" x="42.866211" y="20"/>
- <use xlink:href="#glyph0-4" x="45.913086" y="20"/>
- <use xlink:href="#glyph0-5" x="48.652344" y="20"/>
- <use xlink:href="#glyph0-6" x="53.881836" y="20"/>
-</g>
-</g>
-</svg>
diff --git a/tests/tests_cache/writing/TextTest/Text/fdc1d31b6ce03692.svg b/tests/tests_cache/writing/TextTest/Text/fdc1d31b6ce03692.svg
deleted file mode 100644
index d8c7692ae..000000000
--- a/tests/tests_cache/writing/TextTest/Text/fdc1d31b6ce03692.svg
+++ /dev/null
@@ -1,39 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="600pt" height="400pt" viewBox="0 0 600 400" version="1.1">
-<defs>
-<g>
-<symbol overflow="visible" id="glyph0-0">
-<path style="stroke:none;" d="M 1.25 0 L 1.25 -6.25 L 6.25 -6.25 L 6.25 0 Z M 1.40625 -0.15625 L 6.09375 -0.15625 L 6.09375 -6.09375 L 1.40625 -6.09375 Z "/>
-</symbol>
-<symbol overflow="visible" id="glyph0-1">
-<path style="stroke:none;" d="M 2.578125 -0.785156 L 2.703125 -0.0078125 C 2.453125 0.046875 2.234375 0.0703125 2.039063 0.0703125 C 1.71875 0.0703125 1.46875 0.0195313 1.296875 -0.0820313 C 1.117188 -0.183594 0.996094 -0.316406 0.925781 -0.480469 C 0.855469 -0.644531 0.820313 -0.988281 0.820313 -1.519531 L 0.820313 -4.5 L 0.175781 -4.5 L 0.175781 -5.1875 L 0.820313 -5.1875 L 0.820313 -6.46875 L 1.695313 -6.996094 L 1.695313 -5.1875 L 2.578125 -5.1875 L 2.578125 -4.5 L 1.695313 -4.5 L 1.695313 -1.46875 C 1.691406 -1.214844 1.707031 -1.054688 1.742188 -0.984375 C 1.769531 -0.914063 1.820313 -0.855469 1.890625 -0.8125 C 1.957031 -0.769531 2.058594 -0.75 2.191406 -0.75 C 2.289063 -0.75 2.417969 -0.761719 2.578125 -0.785156 Z "/>
-</symbol>
-<symbol overflow="visible" id="glyph0-2">
-<path style="stroke:none;" d="M 4.210938 -1.671875 L 5.117188 -1.558594 C 4.96875 -1.027344 4.703125 -0.613281 4.320313 -0.320313 C 3.929688 -0.0273438 3.4375 0.117188 2.835938 0.117188 C 2.078125 0.117188 1.476563 -0.113281 1.03125 -0.582031 C 0.585938 -1.046875 0.363281 -1.703125 0.367188 -2.546875 C 0.363281 -3.417969 0.585938 -4.097656 1.039063 -4.582031 C 1.484375 -5.0625 2.070313 -5.300781 2.789063 -5.304688 C 3.480469 -5.300781 4.046875 -5.066406 4.488281 -4.59375 C 4.925781 -4.121094 5.144531 -3.457031 5.148438 -2.601563 C 5.144531 -2.546875 5.140625 -2.46875 5.140625 -2.367188 L 1.273438 -2.367188 C 1.304688 -1.796875 1.46875 -1.359375 1.757813 -1.058594 C 2.046875 -0.753906 2.40625 -0.601563 2.84375 -0.605469 C 3.160156 -0.601563 3.433594 -0.6875 3.664063 -0.859375 C 3.890625 -1.027344 4.074219 -1.296875 4.210938 -1.671875 Z M 1.324219 -3.089844 L 4.21875 -3.089844 C 4.179688 -3.523438 4.066406 -3.851563 3.886719 -4.070313 C 3.605469 -4.40625 3.242188 -4.574219 2.796875 -4.578125 C 2.390625 -4.574219 2.050781 -4.441406 1.777344 -4.171875 C 1.5 -3.902344 1.351563 -3.539063 1.324219 -3.089844 Z "/>
-</symbol>
-<symbol overflow="visible" id="glyph0-3">
-<path style="stroke:none;" d="M 0.308594 -1.546875 L 1.175781 -1.683594 C 1.222656 -1.332031 1.359375 -1.066406 1.582031 -0.882813 C 1.804688 -0.695313 2.117188 -0.601563 2.519531 -0.605469 C 2.921875 -0.601563 3.21875 -0.683594 3.417969 -0.851563 C 3.609375 -1.011719 3.707031 -1.207031 3.710938 -1.429688 C 3.707031 -1.625 3.621094 -1.78125 3.453125 -1.898438 C 3.328125 -1.976563 3.03125 -2.074219 2.554688 -2.195313 C 1.90625 -2.355469 1.457031 -2.496094 1.210938 -2.617188 C 0.960938 -2.734375 0.773438 -2.898438 0.644531 -3.113281 C 0.515625 -3.320313 0.449219 -3.554688 0.453125 -3.808594 C 0.449219 -4.039063 0.503906 -4.25 0.613281 -4.449219 C 0.71875 -4.644531 0.863281 -4.808594 1.046875 -4.941406 C 1.179688 -5.039063 1.363281 -5.125 1.601563 -5.199219 C 1.835938 -5.265625 2.089844 -5.300781 2.363281 -5.304688 C 2.765625 -5.300781 3.125 -5.242188 3.433594 -5.128906 C 3.742188 -5.007813 3.96875 -4.851563 4.117188 -4.652344 C 4.261719 -4.449219 4.363281 -4.179688 4.417969 -3.847656 L 3.558594 -3.730469 C 3.515625 -3.996094 3.402344 -4.203125 3.21875 -4.355469 C 3.027344 -4.5 2.765625 -4.574219 2.425781 -4.578125 C 2.019531 -4.574219 1.730469 -4.507813 1.5625 -4.378906 C 1.386719 -4.242188 1.300781 -4.085938 1.304688 -3.910156 C 1.300781 -3.792969 1.335938 -3.691406 1.410156 -3.601563 C 1.480469 -3.503906 1.59375 -3.425781 1.75 -3.367188 C 1.832031 -3.332031 2.089844 -3.257813 2.523438 -3.144531 C 3.144531 -2.976563 3.578125 -2.839844 3.824219 -2.734375 C 4.070313 -2.628906 4.261719 -2.476563 4.402344 -2.273438 C 4.539063 -2.070313 4.609375 -1.820313 4.613281 -1.523438 C 4.609375 -1.230469 4.523438 -0.953125 4.355469 -0.695313 C 4.183594 -0.433594 3.9375 -0.234375 3.617188 -0.09375 C 3.289063 0.046875 2.925781 0.117188 2.523438 0.117188 C 1.847656 0.117188 1.335938 -0.0195313 0.984375 -0.300781 C 0.628906 -0.578125 0.402344 -0.996094 0.308594 -1.546875 Z "/>
-</symbol>
-<symbol overflow="visible" id="glyph0-4">
-<path style="stroke:none;" d="M 0.664063 -6.148438 L 0.664063 -7.15625 L 1.542969 -7.15625 L 1.542969 -6.148438 Z M 0.664063 0 L 0.664063 -5.1875 L 1.542969 -5.1875 L 1.542969 0 Z "/>
-</symbol>
-<symbol overflow="visible" id="glyph0-5">
-<path style="stroke:none;" d="M 0.660156 0 L 0.660156 -5.1875 L 1.449219 -5.1875 L 1.449219 -4.449219 C 1.828125 -5.015625 2.378906 -5.300781 3.101563 -5.304688 C 3.410156 -5.300781 3.699219 -5.246094 3.960938 -5.132813 C 4.222656 -5.019531 4.417969 -4.871094 4.550781 -4.691406 C 4.679688 -4.507813 4.769531 -4.292969 4.824219 -4.042969 C 4.855469 -3.878906 4.875 -3.59375 4.875 -3.1875 L 4.875 0 L 3.992188 0 L 3.992188 -3.15625 C 3.988281 -3.511719 3.957031 -3.777344 3.890625 -3.957031 C 3.820313 -4.128906 3.699219 -4.269531 3.527344 -4.378906 C 3.351563 -4.480469 3.144531 -4.535156 2.914063 -4.539063 C 2.535156 -4.535156 2.214844 -4.417969 1.945313 -4.183594 C 1.671875 -3.945313 1.535156 -3.492188 1.539063 -2.832031 L 1.539063 0 Z "/>
-</symbol>
-<symbol overflow="visible" id="glyph0-6">
-<path style="stroke:none;" d="M 0.5 0.429688 L 1.351563 0.554688 C 1.386719 0.816406 1.484375 1.007813 1.648438 1.132813 C 1.863281 1.289063 2.164063 1.371094 2.542969 1.375 C 2.949219 1.371094 3.261719 1.289063 3.488281 1.132813 C 3.707031 0.96875 3.859375 0.742188 3.9375 0.449219 C 3.980469 0.265625 4 -0.109375 4 -0.679688 C 3.613281 -0.226563 3.132813 0 2.5625 0 C 1.84375 0 1.292969 -0.253906 0.90625 -0.769531 C 0.511719 -1.28125 0.316406 -1.898438 0.320313 -2.621094 C 0.316406 -3.113281 0.40625 -3.570313 0.589844 -3.988281 C 0.765625 -4.40625 1.023438 -4.730469 1.367188 -4.960938 C 1.703125 -5.1875 2.105469 -5.300781 2.570313 -5.304688 C 3.175781 -5.300781 3.679688 -5.054688 4.082031 -4.5625 L 4.082031 -5.1875 L 4.890625 -5.1875 L 4.890625 -0.703125 C 4.886719 0.101563 4.804688 0.671875 4.644531 1.011719 C 4.476563 1.347656 4.214844 1.613281 3.863281 1.8125 C 3.503906 2.003906 3.066406 2.101563 2.546875 2.105469 C 1.925781 2.101563 1.425781 1.964844 1.046875 1.6875 C 0.664063 1.40625 0.480469 0.984375 0.5 0.429688 Z M 1.226563 -2.6875 C 1.222656 -2.003906 1.359375 -1.507813 1.628906 -1.195313 C 1.898438 -0.882813 2.238281 -0.726563 2.648438 -0.726563 C 3.046875 -0.726563 3.382813 -0.878906 3.660156 -1.191406 C 3.929688 -1.5 4.066406 -1.988281 4.070313 -2.65625 C 4.066406 -3.289063 3.925781 -3.769531 3.648438 -4.089844 C 3.363281 -4.410156 3.023438 -4.570313 2.632813 -4.574219 C 2.238281 -4.570313 1.90625 -4.410156 1.636719 -4.097656 C 1.359375 -3.777344 1.222656 -3.308594 1.226563 -2.6875 Z "/>
-</symbol>
-</g>
-</defs>
-<g id="surface82">
-<g style="fill:rgb(0%,0%,0%);fill-opacity:1;">
- <use xlink:href="#glyph0-1" x="30" y="20"/>
- <use xlink:href="#glyph0-2" x="32.77832" y="20"/>
- <use xlink:href="#glyph0-3" x="38.339844" y="20"/>
- <use xlink:href="#glyph0-1" x="43.339844" y="20"/>
- <use xlink:href="#glyph0-4" x="46.118164" y="20"/>
- <use xlink:href="#glyph0-5" x="48.339844" y="20"/>
- <use xlink:href="#glyph0-6" x="53.901367" y="20"/>
-</g>
-</g>
-</svg>
diff --git a/tests/tests_cache/writing/TextTest/Text/space.svg b/tests/tests_cache/writing/TextTest/Text/space.svg
deleted file mode 100644
index d6612d628..000000000
--- a/tests/tests_cache/writing/TextTest/Text/space.svg
+++ /dev/null
@@ -1,18 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="600pt" height="400pt" viewBox="0 0 600 400" version="1.1">
-<defs>
-<g>
-<symbol overflow="visible" id="glyph0-0">
-<path style="stroke:none;" d="M 1.25 0 L 1.25 -6.25 L 6.25 -6.25 L 6.25 0 Z M 1.40625 -0.15625 L 6.09375 -0.15625 L 6.09375 -6.09375 L 1.40625 -6.09375 Z M 1.40625 -0.15625 "/>
-</symbol>
-<symbol overflow="visible" id="glyph0-1">
-<path style="stroke:none;" d="M -0.152344 1.988281 L -0.152344 1.351563 L 5.671875 1.351563 L 5.671875 1.988281 Z M -0.152344 1.988281 "/>
-</symbol>
-</g>
-</defs>
-<g id="surface73">
-<g style="fill:rgb(0%,0%,0%);fill-opacity:1;">
- <use xlink:href="#glyph0-1" x="30" y="20"/>
-</g>
-</g>
-</svg>
diff --git a/tests/testing_utils.py b/tests/utils/GraphicalUnitTester.py
similarity index 50%
rename from tests/testing_utils.py
rename to tests/utils/GraphicalUnitTester.py
index 92cfef9db..ef8cb4e37 100644
--- a/tests/testing_utils.py
+++ b/tests/utils/GraphicalUnitTester.py
@@ -4,12 +4,13 @@ import sys
import inspect
import logging
import pytest
+import warnings
+from platform import system
-from manim import logger
from manim import config, file_writer_config
-class SceneTester:
+class GraphicalUnitTester:
"""Class used to test the animations.
Parameters
@@ -25,38 +26,59 @@ class SceneTester:
-----------
path_tests_medias_cache : : class:`str`
Path to 'media' folder generated by manim. This folder contains cached data used by some tests.
- path_tests_data : : class:`str`
+ path_control_data : :class:`str`
Path to the data used for the tests (i.e the pre-rendered frames).
scene : :class:`Scene`
The scene tested
"""
- def __init__(self, scene_object, module_tested, caching_needed=False):
+ def __init__(
+ self,
+ scene_object,
+ module_tested,
+ tmpdir,
+ ):
# Disable the the logs, (--quiet is broken) TODO
logging.disable(logging.CRITICAL)
+ tests_directory = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
self.path_tests_medias_cache = os.path.join(
- "tests", "tests_cache", module_tested
+ tmpdir,
+ "test_graphical_units",
+ "tests_cache",
+ module_tested,
+ scene_object.__name__,
+ )
+ self.path_control_data = os.path.join(
+ tests_directory, "control_data", "graphical_units_data", module_tested
)
- self.path_tests_data = os.path.join("tests", "tests_data", module_tested)
- if caching_needed:
- file_writer_config["text_dir"] = os.path.join(
- self.path_tests_medias_cache, scene_object.__name__, "Text"
- )
- file_writer_config["tex_dir"] = os.path.join(
- self.path_tests_medias_cache, scene_object.__name__, "Tex"
- )
+ # IMPORTANT NOTE : The graphical units tests don't use for now any custom manim.cfg,
+ # since it is impossible to manually select a manim.cfg from a python file. (see issue #293)
+ file_writer_config["text_dir"] = os.path.join(
+ self.path_tests_medias_cache, "Text"
+ )
+ file_writer_config["tex_dir"] = os.path.join(
+ self.path_tests_medias_cache, "Tex"
+ )
file_writer_config["skip_animations"] = True
- file_writer_config["disable_caching"] = True
file_writer_config["write_to_movie"] = False
+ file_writer_config["disable_caching"] = True
config["pixel_height"] = 480
config["pixel_width"] = 854
config["frame_rate"] = 15
+
+ for dir_temp in [
+ self.path_tests_medias_cache,
+ file_writer_config["text_dir"],
+ file_writer_config["tex_dir"],
+ ]:
+ os.makedirs(dir_temp)
+
# By invoking this, the scene is rendered.
self.scene = scene_object()
- def load_data(self):
+ def _load_data(self):
"""Load the np.array of the last frame of a pre-rendered scene. If not found, throw FileNotFoundError.
Returns
@@ -65,14 +87,48 @@ class SceneTester:
The pre-rendered frame.
"""
frame_data_path = os.path.join(
- self.path_tests_data, "{}.npy".format(str(self.scene))
+ os.path.join(self.path_control_data, "{}.npy".format(str(self.scene)))
)
return np.load(frame_data_path)
- def test(self):
+ def _show_diff_helper(self, frame_data, expected_frame_data):
+ """Will visually display with matplotlib differences between frame generared and the one expected."""
+ import matplotlib.pyplot as plt
+ import matplotlib.gridspec as gridspec
+
+ gs = gridspec.GridSpec(2, 2)
+ fig = plt.figure()
+ fig.suptitle(f"Test for {str(self.scene).replace('Test', '')}", fontsize=16)
+
+ ax = fig.add_subplot(gs[0, 0])
+ ax.imshow(frame_data)
+ ax.set_title("Generated :")
+
+ ax = fig.add_subplot(gs[0, 1])
+ ax.imshow(expected_frame_data)
+ ax.set_title("Expected :")
+
+ ax = fig.add_subplot(gs[1, :])
+ diff_im = expected_frame_data.copy()
+ diff_im = np.where(
+ frame_data != np.array([0, 0, 0, 255]),
+ np.array([255, 0, 0, 255], dtype="uint8"),
+ np.array([0, 0, 0, 255], dtype="uint8"),
+ ) # Set the points of the frame generated to red.
+ np.putmask(
+ diff_im,
+ expected_frame_data != np.array([0, 0, 0, 255], dtype="uint8"),
+ np.array([0, 255, 0, 255], dtype="uint8"),
+ ) # Set the points of the frame generated to green.
+ ax.imshow(diff_im, interpolation="nearest")
+ ax.set_title("Differences summary : (red = got, green = expected)")
+
+ plt.show()
+
+ def test(self, show_diff=False):
"""Compare pre-rendered frame to the frame rendered during the test."""
frame_data = self.scene.get_frame()
- expected_frame_data = self.load_data()
+ expected_frame_data = self._load_data()
assert frame_data.shape == expected_frame_data.shape, (
"The frames have different shape:"
@@ -86,63 +142,10 @@ class SceneTester:
first_incorrect_index = incorrect_indices[0][:2]
first_incorrect_point = frame_data[tuple(first_incorrect_index)]
expected_point = expected_frame_data[tuple(first_incorrect_index)]
+ if show_diff:
+ self._show_diff_helper(frame_data, expected_frame_data)
assert test_result, (
f"The frames don't match. {str(self.scene).replace('Test', '')} has been modified."
+ "\nPlease ignore if it was intended."
+ f"\nFirst unmatched index is at {first_incorrect_index}: {first_incorrect_point} != {expected_point}"
)
-
-
-def get_scenes_to_test(module_name):
- """Get all Test classes of the module from which it is called. Used to fetch all the SceneTest of the module.
-
- Parameters
- ----------
- module_name : :class:`str`
- The name of the module tested.
-
- Returns
- -------
- :class:`list`
- The list of all the classes of the module.
- """
- return inspect.getmembers(
- sys.modules[module_name],
- lambda m: inspect.isclass(m) and m.__module__ == module_name,
- )
-
-
-def utils_test_scenes(scenes_to_test, module_name, caching_needed=False):
- for _, scene_tested in scenes_to_test:
- SceneTester(scene_tested, module_name, caching_needed=caching_needed).test()
-
-
-def set_test_scene(scene_object, module_name):
- """Function used to set up the test data for a new feature. This will basically set up a pre-rendered frame for a scene. This is meant to be used only
- when setting up tests. Please refer to the wiki.
-
- Parameters
- ----------
- scene_object : :class:`~.Scene`
- The scene with wich we want to set up a new test.
- module_name : :class:`str`
- The name of the module in which the functionnality tested is contained. For example, 'Write' is contained in the module 'creation'. This will be used in the folder architecture
- of '/tests_data'.
-
- Examples
- --------
- Normal usage::
- set_test_scene(DotTest, "geometry")
- """
- file_writer_config["skip_animations"] = True
- config["pixel_height"] = 480
- config["pixel_width"] = 854
- config["frame_rate"] = 15
-
- scene = scene_object()
- data = scene.get_frame()
- path = os.path.join("manim", "tests", "tests_data", "{}".format(module_name))
- if not os.path.isdir(path):
- os.makedirs(path)
- np.save(os.path.join(path, str(scene)), data)
- logger.info("Test data saved in " + path + "\n")
diff --git a/tests/utils/__init__.py b/tests/utils/__init__.py
new file mode 100644
index 000000000..e69de29bb
diff --git a/tests/utils/commands.py b/tests/utils/commands.py
new file mode 100644
index 000000000..6aa32fc0d
--- /dev/null
+++ b/tests/utils/commands.py
@@ -0,0 +1,9 @@
+import subprocess
+
+
+def capture(command):
+ proc = subprocess.Popen(
+ command, stdout=subprocess.PIPE, stderr=subprocess.PIPE, encoding="utf8",
+ )
+ out, err = proc.communicate()
+ return out, err, proc.returncode
diff --git a/tests/utils/testing_utils.py b/tests/utils/testing_utils.py
new file mode 100644
index 000000000..cd3514e0e
--- /dev/null
+++ b/tests/utils/testing_utils.py
@@ -0,0 +1,21 @@
+import sys
+import inspect
+
+
+def get_scenes_to_test(module_name):
+ """Get all Test classes of the module from which it is called. Used to fetch all the SceneTest of the module.
+
+ Parameters
+ ----------
+ module_name : :class:`str`
+ The name of the module tested.
+
+ Returns
+ -------
+ List[:class:`type`]
+ The list of all the classes of the module.
+ """
+ return inspect.getmembers(
+ sys.modules[module_name],
+ lambda m: inspect.isclass(m) and m.__module__ == module_name,
+ )
diff --git a/tests/utils/video_tester.py b/tests/utils/video_tester.py
new file mode 100644
index 000000000..6978e551b
--- /dev/null
+++ b/tests/utils/video_tester.py
@@ -0,0 +1,85 @@
+import subprocess
+import json
+from functools import wraps
+import os
+
+from ..utils.commands import capture
+
+
+def _get_config_from_video(path_to_video):
+ command = [
+ "ffprobe",
+ "-v",
+ "error",
+ "-select_streams",
+ "v:0",
+ "-show_entries",
+ "stream=width,height,nb_frames,duration,avg_frame_rate,codec_name",
+ "-print_format",
+ "json",
+ path_to_video,
+ ]
+ config, err, exitcode = capture(command)
+ assert exitcode == 0, err
+ return json.loads(config)["streams"][0]
+
+
+def _load_video_data(path_to_data):
+ return json.load(open(path_to_data, "r"))
+
+
+def _check_video_data(path_control_data, path_to_video_generated):
+ control_data = _load_video_data(path_control_data)
+ config_generated = _get_config_from_video(path_to_video_generated)
+ config_expected = control_data["config"]
+ diff_keys = [
+ d1[0]
+ for d1, d2 in zip(config_expected.items(), config_generated.items())
+ if d1[1] != d2[1]
+ ]
+ # \n does not work in f-strings.
+ newline = "\n"
+ assert (
+ len(diff_keys) == 0
+ ), f"Config don't match. : \n{newline.join([f'For {key}, got {config_generated[key]}, expected : {config_expected[key]}.' for key in diff_keys])}"
+
+
+def video_comparison(control_data_file, scene_path_from_media_dir):
+ """Decorator used for any test that needs to check a rendered scene/video.
+
+ Parameters
+ ----------
+ control_data_file : :class:`str`
+ Name of the control data file, i.e. the .json containing all the pre-rendered references of the scene tested.
+ .. warning:: You don't have to pass the path here.
+
+ scene_path_from_media_dir : :class:`str`
+ The path of the scene generated, from the media dir. Example: /videos/1080p60/SquareToCircle.mp4.
+ """
+
+ def decorator(f):
+ @wraps(f)
+ def wrapper(*args, **kwargs):
+ # NOTE : Every args goes seemingly in kwargs instead of args; this is perhaps Pytest.
+ result = f(*args, **kwargs)
+ tmp_path = kwargs["tmp_path"]
+ tests_directory = os.path.dirname(
+ os.path.dirname(os.path.abspath(__file__))
+ )
+ path_control_data = os.path.join(
+ tests_directory, "control_data", "videos_data", control_data_file
+ )
+ path_video_generated = tmp_path / scene_path_from_media_dir
+ if not os.path.exists(path_video_generated):
+ for parent in reversed(path_video_generated.parents):
+ if not parent.exists():
+ assert (
+ False
+ ), f"'{parent.name}' does not exist in '{parent.parent}' (which exists). "
+ break
+ _check_video_data(path_control_data, str(path_video_generated))
+ return result
+
+ return wrapper
+
+ return decorator