manim/tests/test_scene_rendering/conftest.py
Naveen M K dcb90a8656
Format Imports using Isort (#1178)
* Format imports using Isort.
Add a check for pull requests.

Signed-off-by: Naveen M K <naveen@syrusdark.website>

* CI: update check's name
2021-04-03 13:45:12 +05:30

34 lines
761 B
Python

from pathlib import Path
import pytest
from manim import config, tempconfig
@pytest.fixture
def manim_cfg_file():
return str(Path(__file__).parent / "manim.cfg")
@pytest.fixture
def simple_scenes_path():
return str(Path(__file__).parent / "simple_scenes.py")
@pytest.fixture
def using_temp_config(tmpdir):
"""Standard fixture that makes tests use a standard_config.cfg with a temp dir."""
with tempconfig(config.digest_file(Path(__file__).parent / "standard_config.cfg")):
config.media_dir = tmpdir
yield
@pytest.fixture
def disabling_caching():
with tempconfig({"disable_caching": True}):
yield
@pytest.fixture
def infallible_scenes_path():
return str(Path(__file__).parent / "infallible_scenes.py")