manim/tests/test_plugins/simple_scenes.py
Naveen M K 65240b8bc8
Automatically Import Plugins (#967)
* Automatically import Plugins
Specify plugins using CLI and config file

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

* Fix Doc tests

* clean manim.cfg

* Add more explanatory docs

* add info about plugins site

* use property method

Co-authored-by: friedkeenan <friedkeenan@protonmail.com>

* use types module and f-strings

* Add tests

* lint

* remove --plugins
it seems it is not possible currently to implement that

* fix doc tests

* don't define unnecessary variables

* Apply suggestions from code review

Co-authored-by: Leo Torres <dleonardotn@gmail.com>

Co-authored-by: friedkeenan <friedkeenan@protonmail.com>
Co-authored-by: Leo Torres <dleonardotn@gmail.com>
2021-01-28 20:57:27 +05:30

29 lines
625 B
Python

from manim import *
class SquareToCircle(Scene):
def construct(self):
square = Square()
circle = Circle()
self.play(Transform(square, circle))
class FunctionLikeTest(Scene):
def contruct(self):
assert "FunctionLike" in globals()
a = FunctionLike()
self.play(FadeIn(a))
class NoAllTest(Scene):
def construct(self):
assert "test_plugin" in globals()
a = test_plugin.NoAll()
self.play(FadeIn(a))
class WithAllTest(Scene):
def construct(self):
assert "WithAll" in globals()
a = WithAll()
self.play(FadeIn(a))