mirror of
https://github.com/ManimCommunity/manim.git
synced 2026-06-22 10:01:47 +00:00
Marked tests as slow if they take more than 10 seconds to run on my computer. (#4577)
pytest reported these durations for the slowest tests. 669.59s call tests/test_graphical_units/test_coordinate_systems.py::test_gradient_line_graph_x_axis 648.22s call tests/test_graphical_units/test_coordinate_systems.py::test_gradient_line_graph_y_axis 192.45s call tests/test_graphical_units/test_threed.py::test_Torus 53.81s call tests/test_graphical_units/test_threed.py::test_Sphere 24.88s call tests/module/mobject/mobject/test_mobject.py::test_mobject_dimensions_nested_mobjects 19.33s call tests/test_graphical_units/test_coordinate_systems.py::test_plot_surface 14.16s call tests/test_graphical_units/test_coordinate_systems.py::test_plot_surface_colorscale 10.49s call tests/test_graphical_units/test_probability.py::test_default_chart 7.87s call tests/test_graphical_units/test_numbers.py::test_set_value_with_updaters 6.57s call tests/module/mobject/test_matrix.py::TestMatrix::test_get_columns[2x2] 6.30s call tests/module/mobject/test_matrix.py::TestMatrix::test_get_columns[1x3] 5.64s call tests/test_graphical_units/test_tables.py::test_Table 5.54s call tests/test_graphical_units/test_axes.py::test_plot[False] 5.54s call tests/module/mobject/test_matrix.py::TestMatrix::test_matrix_init_valid[2x2_numpy] 5.25s call tests/test_graphical_units/test_img_and_svg.py::test_WeightSVG
This commit is contained in:
parent
9e07cbad72
commit
8603510d13
4 changed files with 14 additions and 0 deletions
|
|
@ -105,6 +105,7 @@ def is_close(x, y):
|
|||
return abs(x - y) < 0.00001
|
||||
|
||||
|
||||
@pytest.mark.slow
|
||||
def test_mobject_dimensions_nested_mobjects():
|
||||
vg = VGroup()
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,7 @@
|
|||
from __future__ import annotations
|
||||
|
||||
import pytest
|
||||
|
||||
from manim import *
|
||||
from manim.utils.testing.frames_comparison import frames_comparison
|
||||
|
||||
|
|
@ -37,6 +39,7 @@ def test_line_graph(scene):
|
|||
scene.add(plane, first_line, second_line)
|
||||
|
||||
|
||||
@pytest.mark.slow
|
||||
@frames_comparison
|
||||
def test_plot_surface(scene):
|
||||
axes = ThreeDAxes(x_range=(-5, 5, 1), y_range=(-5, 5, 1), z_range=(-5, 5, 1))
|
||||
|
|
@ -57,6 +60,7 @@ def test_plot_surface(scene):
|
|||
scene.add(axes, trig_plane)
|
||||
|
||||
|
||||
@pytest.mark.slow
|
||||
@frames_comparison
|
||||
def test_plot_surface_colorscale(scene):
|
||||
axes = ThreeDAxes(x_range=(-3, 3, 1), y_range=(-3, 3, 1), z_range=(-5, 5, 1))
|
||||
|
|
@ -143,6 +147,7 @@ def test_number_plane_log(scene):
|
|||
scene.add(VGroup(plane1, plane2).arrange())
|
||||
|
||||
|
||||
@pytest.mark.slow
|
||||
@frames_comparison
|
||||
def test_gradient_line_graph_x_axis(scene):
|
||||
"""Test that using `colorscale` generates a line whose gradient matches the y-axis"""
|
||||
|
|
@ -158,6 +163,7 @@ def test_gradient_line_graph_x_axis(scene):
|
|||
scene.add(axes, curve)
|
||||
|
||||
|
||||
@pytest.mark.slow
|
||||
@frames_comparison
|
||||
def test_gradient_line_graph_y_axis(scene):
|
||||
"""Test that using `colorscale` generates a line whose gradient matches the y-axis"""
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
import pytest
|
||||
|
||||
from manim.constants import LEFT
|
||||
from manim.mobject.graphing.probability import BarChart
|
||||
from manim.mobject.text.tex_mobject import MathTex
|
||||
|
|
@ -7,6 +9,7 @@ from manim.utils.testing.frames_comparison import frames_comparison
|
|||
__module_test__ = "probability"
|
||||
|
||||
|
||||
@pytest.mark.slow
|
||||
@frames_comparison
|
||||
def test_default_chart(scene):
|
||||
pull_req = [54, 23, 47, 48, 40, 64, 112, 87]
|
||||
|
|
|
|||
|
|
@ -1,5 +1,7 @@
|
|||
from __future__ import annotations
|
||||
|
||||
import pytest
|
||||
|
||||
from manim import *
|
||||
from manim.utils.testing.frames_comparison import frames_comparison
|
||||
|
||||
|
|
@ -18,6 +20,7 @@ def test_Cube(scene: Scene) -> None:
|
|||
scene.add(Cube())
|
||||
|
||||
|
||||
@pytest.mark.slow
|
||||
@frames_comparison
|
||||
def test_Sphere(scene: Scene) -> None:
|
||||
scene.add(Sphere())
|
||||
|
|
@ -64,6 +67,7 @@ def test_Arrow3D(scene: Scene) -> None:
|
|||
scene.add(Arrow3D(resolution=16))
|
||||
|
||||
|
||||
@pytest.mark.slow
|
||||
@frames_comparison
|
||||
def test_Torus(scene: Scene) -> None:
|
||||
scene.add(Torus())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue