We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f46d5db commit 7433165Copy full SHA for 7433165
tests/test_scaffold.py
@@ -0,0 +1,21 @@
1
+# noqa: D100
2
+import os
3
+import unittest
4
+
5
+from click.testing import CliRunner
6
7
+from mesa.main import cli
8
9
10
+class ScaffoldTest(unittest.TestCase):
11
+ """Test mesa project scaffolding command."""
12
13
+ @classmethod
14
+ def setUpClass(cls): # noqa: D102
15
+ cls.runner = CliRunner()
16
17
+ def test_scaffold_creates_project_dir(self): # noqa: D102
18
+ with self.runner.isolated_filesystem():
19
+ assert not os.path.isdir("example_project")
20
+ self.runner.invoke(cli, ["startproject", "--no-input"])
21
+ assert os.path.isdir("example_project")
0 commit comments