manim/tests
Jason Villanueva a87bb28484
Refactored the Command Line Interface to use Click + Cloup instead of Argparse (#1013)
* Added click dependency and command structure

* Refactored code for separation of concerns

* Shortened plugins command to plugin, added render options

* first draft for render -h

* First successful render using click

* Cleaned main

* Moved flush_cache to option, ran black

* Removed argparse logic, scattered print statements

* corrected tests, all passing

* merge upstream

* fixed test with click's clirunner

* Fixed doctest configuration.rst

* Temporarily add in main_utils

* Removed main_utils.parse_args, used ManimConfig.digest_args

* fixed progress bar

* Fix jupyter

* black

* Fixed incorrectly merged merge conflict

* updated README command.png image

* updated configuration.rst expected output

* Fixed test_plugins and config_file expected type

* Refixed the jupyter fix

* Apply 3/5 suggestions

Remove stray print

Improve readability of test code

Added module docs for the subcommands

* Updated `main` to `manim` for tests

* Forced `file` positional argument to be Path type

* Fixed main -> manim

* Added libpango to linux dependency

* Updated poetry.lock

* Changed configuration.rst test

* Fixed test_a_flag test

minor space issue

added media_width to configuration.rst

* Fixed fps flag in Cairo rendering

* Fixed more outdated rst in sphinx docs

Removed default for fps option, always overwrote quality

Fixed doctest control_data

* Fixed more incorrect rst orderings

* Update tests/test_commands.py

Co-authored-by: Naveen M K <naveen@syrusdark.website>

* Added suggestions

* Removed unused imports

* Reverted entry point back to main

* Update manim/_config/default.cfg

Co-authored-by: Benjamin Hackl <devel@benjamin-hackl.at>

* Adjusted ipython_magic's call to the entry_point

* Converted frame_rate to int if integer

* run black

* Fixed doctest

* Fixed issue with command name from CliRunner

* Fixed multiple video windows opening from upstream merge

* to black or not to black

* Added deprecation warning to render subcommand

* warning instead of warn

* Applied Naveen's suggestions

* Made `manim render` show the help page

* Update manim/cli/render/commands.py

Co-authored-by: Naveen M K <naveen@syrusdark.website>

* Update manim/cli/cfg/commands.py

Co-authored-by: Naveen M K <naveen@syrusdark.website>

* Update manim/cli/cfg/commands.py

Co-authored-by: Naveen M K <naveen@syrusdark.website>

* Update manim/cli/plugins/commands.py

Co-authored-by: Naveen M K <naveen@syrusdark.website>

* Addressed some style changes

* add back in write_to_movie temporarily for OpenGL support

* Removed sound flag, deprecated use_opengl_renderer, added renderer option

* revert webgl_renderer_path removal

* Fixed cfg export

Fixed readme usage of CLI

* Flake8/black

* Fixed bug in setting renderer choice

* Removed log message due to default option

Removed default option of background color

Fixed write_to_movie flag default

* Fix log_to_file tests

* Make '-c' option for config_file, not background_color

* print colored version always

* Remove -v = --version shorthand, conflicts with verbosity

* Use subprocess.run instead of Click's CliRunner for stdout

* Refactor cli/render to use Cloup instead of click-option-group

1) There's a new file for each option group
2) render is now a cloup.Command, not a Group

Fixed issue when an animation is cached, manim can't merge the partial movie files. (#1192)

* fixed issue

* fixed tests

* Update manim/renderer/cairo_renderer.py

Co-authored-by: Darylgolden <darylgolden@gmail.com>

* added tests

* imrpoved test

* fixed logic

* added new test

* check if the file has been outputed

* added test when caching is enabled

* fixed tests on windows

* black

* Update manim/renderer/cairo_renderer.py

Co-authored-by: Naveen M K <naveen@syrusdark.website>

* Update tests/assert_utils.py

Co-authored-by: Naveen M K <naveen@syrusdark.website>

Co-authored-by: KingWampy <9156604+WampyCakes@users.noreply.github.com>
Co-authored-by: Darylgolden <darylgolden@gmail.com>
Co-authored-by: Naveen M K <naveen@syrusdark.website>

Added :ref_methods: to the manim directive (#1209)

* fix manim_directive for methods

* added ref_methods to Angle example

* black

* added new ref_methods references

* sort out ref_functions vs ref_methods in examples.rst

Co-authored-by: Jason Villanueva <a@jsonvillanueva.com>
Co-authored-by: Benjamin Hackl <devel@benjamin-hackl.at>

Fixed issue when an animation is cached, manim can't merge the partial movie files. (#1192)

* fixed issue

* fixed tests

* Update manim/renderer/cairo_renderer.py

Co-authored-by: Darylgolden <darylgolden@gmail.com>

* added tests

* imrpoved test

* fixed logic

* added new test

* check if the file has been outputed

* added test when caching is enabled

* fixed tests on windows

* black

* Update manim/renderer/cairo_renderer.py

Co-authored-by: Naveen M K <naveen@syrusdark.website>

* Update tests/assert_utils.py

Co-authored-by: Naveen M K <naveen@syrusdark.website>

Co-authored-by: KingWampy <9156604+WampyCakes@users.noreply.github.com>
Co-authored-by: Darylgolden <darylgolden@gmail.com>
Co-authored-by: Naveen M K <naveen@syrusdark.website>

Added :ref_methods: to the manim directive (#1209)

* fix manim_directive for methods

* added ref_methods to Angle example

* black

* added new ref_methods references

* sort out ref_functions vs ref_methods in examples.rst

Co-authored-by: Jason Villanueva <a@jsonvillanueva.com>
Co-authored-by: Benjamin Hackl <devel@benjamin-hackl.at>

Fixed unnecessary args dict

* Fixed bug that changed caching hashing result

* Revert doctest logic for fps filename output

Co-authored-by: Naveen M K <naveen@syrusdark.website>
Co-authored-by: Benjamin Hackl <devel@benjamin-hackl.at>
Co-authored-by: Gianluca Gippetto <gianluca.gippetto@gmail.com>
2021-04-01 23:53:07 -07:00
..
control_data Enable CI testing for OpenGL (#1160) 2021-03-28 22:09:29 +02:00
helpers Run proofreading over the whole library (#890) 2021-01-01 17:59:12 +01:00
test_graphical_units Enable CI testing for OpenGL (#1160) 2021-03-28 22:09:29 +02:00
test_logging Refactored the Command Line Interface to use Click + Cloup instead of Argparse (#1013) 2021-04-01 23:53:07 -07:00
test_plugins Refactored the Command Line Interface to use Click + Cloup instead of Argparse (#1013) 2021-04-01 23:53:07 -07:00
test_scene_rendering Refactored the Command Line Interface to use Click + Cloup instead of Argparse (#1013) 2021-04-01 23:53:07 -07:00
utils Refactored the Command Line Interface to use Click + Cloup instead of Argparse (#1013) 2021-04-01 23:53:07 -07:00
__init__.py Enable CI testing for OpenGL (#1160) 2021-03-28 22:09:29 +02:00
assert_utils.py Fixed issue when an animation is cached, manim can't merge the partial movie files. (#1192) 2021-03-31 20:23:43 +05:30
conftest.py Automatically Import Plugins (#967) 2021-01-28 20:57:27 +05:30
template_generate_graphical_units_data.py Better creation Example in docs & buff parameter in arrange (#825) 2020-12-05 17:48:05 +01:00
test_animate.py New Feature: Allow passing animation arguments with .animate syntax (#1118) 2021-03-21 09:08:01 +01:00
test_axes_shift.py Fix shift in axis in GraphScene (#580) 2020-11-14 08:45:17 +01:00
test_color.py Bugfix: Allow using #hex colors with 3 characters (#998) 2021-02-05 12:48:14 +01:00
test_commands.py Refactored the Command Line Interface to use Click + Cloup instead of Argparse (#1013) 2021-04-01 23:53:07 -07:00
test_composition.py Fixed using :class:Animations without a child :class:~.Mobject in :class:~.AnimationGroup (#1193) 2021-03-30 00:30:37 +02:00
test_config.py Merge pull request #756 from leotrs/fix-749 2021-01-22 09:07:41 -05:00
test_container.py Fix 305: mobject.add should do input validation (#750) 2020-11-21 17:53:13 -05:00
test_coordinate_system.py Running Black On Master (#419) 2020-09-08 07:47:55 -04:00
test_copy.py merge master 2020-10-26 17:46:00 -04:00
test_family.py Running Black On Master (#419) 2020-09-08 07:47:55 -04:00
test_get_set.py More descriptive error when accessing an unhandled mobject attribute (#1059) 2021-02-27 01:48:01 -08:00
test_graph.py Basic implementation of undirected graphs (#861) 2020-12-31 21:10:41 +01:00
test_hashing.py fixed tuples in hashing, but converting them to lists 2020-10-01 09:16:33 +02:00
test_markup.py Raise error if markup in MarkupText is invalid (#920) 2021-01-12 23:13:40 +01:00
test_number_line.py Add unit test to #960 (#964) 2021-01-26 14:44:48 +01:00
test_sound.py Bugfix: make Scene.add_sound work again (when running with --disable_caching) (#907) 2021-01-11 17:33:57 +01:00
test_stroke.py fix - corrections for setting stroke related attributes on VMobject (#1051) 2021-02-24 15:17:40 +01:00
test_unit_geometry.py Updated the test case 2020-09-28 08:51:10 +05:30
test_units.py change interface of units 2020-12-01 23:03:30 -05:00
test_value_tracker.py Run black 2020-10-04 03:28:12 +05:30
test_vectorized_mobject.py feat: implement __add__, __iadd__, __sub__, and __isub__ for Mobject 2020-12-05 13:45:20 -05:00
test_version.py Remove a hardcoded value in test_version.py (#1079) 2021-03-07 06:09:55 -08:00