Skip to content

Commit 3f118e4

Browse files
Removed deprecated new command (#3512)
Co-authored-by: Naveen M K <[email protected]>
1 parent 370d883 commit 3f118e4

File tree

4 files changed

+0
-212
lines changed

4 files changed

+0
-212
lines changed

manim/__main__.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
from .cli.checkhealth.commands import checkhealth
1010
from .cli.default_group import DefaultGroup
1111
from .cli.init.commands import init
12-
from .cli.new.group import new
1312
from .cli.plugins.commands import plugins
1413
from .cli.render.commands import render
1514
from .constants import EPILOG
@@ -52,7 +51,6 @@ def main(ctx):
5251
main.add_command(cfg)
5352
main.add_command(plugins)
5453
main.add_command(init)
55-
main.add_command(new)
5654
main.add_command(render)
5755

5856
if __name__ == "__main__":

manim/cli/new/__init__.py

Whitespace-only changes.

manim/cli/new/group.py

Lines changed: 0 additions & 189 deletions
This file was deleted.

tests/interface/test_commands.py

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -135,24 +135,3 @@ def test_manim_init_scene(tmp_path):
135135
assert (Path(tmp_dir) / "main.py").exists()
136136
file_content = (Path(tmp_dir) / "main.py").read_text()
137137
assert "DefaultFileTestScene(Scene):" in file_content
138-
139-
140-
def test_manim_new_command():
141-
command = ["new"]
142-
runner = CliRunner()
143-
result = runner.invoke(main, command, prog_name="manim")
144-
expected_output = """\
145-
Usage: manim new [OPTIONS] COMMAND [ARGS]...
146-
147-
(Deprecated) Create a new project or insert a new scene.
148-
149-
Options:
150-
--help Show this message and exit.
151-
152-
Commands:
153-
project Creates a new project.
154-
scene Inserts a SCENE to an existing FILE or creates a new FILE.
155-
156-
Made with <3 by Manim Community developers.
157-
"""
158-
assert dedent(expected_output) == result.output

0 commit comments

Comments
 (0)