Skip to content

Commit

Permalink
Removed deprecated new command (ManimCommunity#3512)
Browse files Browse the repository at this point in the history
Co-authored-by: Naveen M K <[email protected]>
  • Loading branch information
chopan050 and naveen521kk authored Dec 10, 2023
1 parent 370d883 commit 3f118e4
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 212 deletions.
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

0 comments on commit 3f118e4

Please sign in to comment.