diff --git a/mesa/visualization_old/ModularVisualization.py b/mesa/visualization_old/ModularVisualization.py deleted file mode 100644 index dbdbf3b3f9f..00000000000 --- a/mesa/visualization_old/ModularVisualization.py +++ /dev/null @@ -1 +0,0 @@ -from mesa_viz_tornado.ModularVisualization import * # noqa diff --git a/mesa/visualization_old/TextVisualization.py b/mesa/visualization_old/TextVisualization.py deleted file mode 100644 index f41c90ea595..00000000000 --- a/mesa/visualization_old/TextVisualization.py +++ /dev/null @@ -1 +0,0 @@ -from mesa_viz_tornado.TextVisualization import * # noqa diff --git a/mesa/visualization_old/UserParam.py b/mesa/visualization_old/UserParam.py deleted file mode 100644 index d41362389f4..00000000000 --- a/mesa/visualization_old/UserParam.py +++ /dev/null @@ -1 +0,0 @@ -from mesa_viz_tornado.UserParam import * # noqa diff --git a/mesa/visualization_old/__init__.py b/mesa/visualization_old/__init__.py deleted file mode 100644 index e8b7256e25f..00000000000 --- a/mesa/visualization_old/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -import contextlib - -with contextlib.suppress(ImportError): - from mesa_viz_tornado.ModularVisualization import * # noqa - from mesa_viz_tornado.modules import * # noqa - from mesa_viz_tornado.UserParam import * # noqa - from mesa_viz_tornado.TextVisualization import * # noqa diff --git a/mesa/visualization_old/modules.py b/mesa/visualization_old/modules.py deleted file mode 100644 index 40fc193a522..00000000000 --- a/mesa/visualization_old/modules.py +++ /dev/null @@ -1 +0,0 @@ -from mesa_viz_tornado.modules import * # noqa diff --git a/tests/test_main.py b/tests/test_main.py deleted file mode 100644 index b6bba370bf3..00000000000 --- a/tests/test_main.py +++ /dev/null @@ -1,34 +0,0 @@ -import os -import sys -import unittest -from unittest.mock import patch - -from click.testing import CliRunner - -from mesa.main import cli - - -class TestCli(unittest.TestCase): - """ - Test CLI commands - """ - - def setUp(self): - self.old_sys_path = sys.path[:] - self.runner = CliRunner() - - def tearDown(self): - sys.path[:] = self.old_sys_path - - @unittest.skip( - "Skipping test_run, because examples folder was moved. More discussion needed." - ) - def test_run(self): - with patch("mesa.visualization_old.ModularServer") as ModularServer: # noqa: N806 - example_dir = os.path.abspath( - os.path.join(os.path.dirname(__file__), "../examples/wolf_sheep") - ) - with self.runner.isolated_filesystem(): - result = self.runner.invoke(cli, ["runserver", example_dir]) - assert result.exit_code == 0, result.output - assert ModularServer().launch.call_count == 1