Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removed deprecated manim new command #3512

Merged
merged 2 commits into from
Dec 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions manim/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
from .cli.checkhealth.commands import checkhealth
from .cli.default_group import DefaultGroup
from .cli.init.commands import init
from .cli.new.group import new
from .cli.plugins.commands import plugins
from .cli.render.commands import render
from .constants import EPILOG
Expand Down Expand Up @@ -52,7 +51,6 @@ def main(ctx):
main.add_command(cfg)
main.add_command(plugins)
main.add_command(init)
main.add_command(new)
main.add_command(render)

if __name__ == "__main__":
Expand Down
Empty file removed manim/cli/new/__init__.py
Empty file.
189 changes: 0 additions & 189 deletions manim/cli/new/group.py

This file was deleted.

21 changes: 0 additions & 21 deletions tests/interface/test_commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,24 +135,3 @@ def test_manim_init_scene(tmp_path):
assert (Path(tmp_dir) / "main.py").exists()
file_content = (Path(tmp_dir) / "main.py").read_text()
assert "DefaultFileTestScene(Scene):" in file_content


def test_manim_new_command():
command = ["new"]
runner = CliRunner()
result = runner.invoke(main, command, prog_name="manim")
expected_output = """\
Usage: manim new [OPTIONS] COMMAND [ARGS]...

(Deprecated) Create a new project or insert a new scene.

Options:
--help Show this message and exit.

Commands:
project Creates a new project.
scene Inserts a SCENE to an existing FILE or creates a new FILE.

Made with <3 by Manim Community developers.
"""
assert dedent(expected_output) == result.output
Loading