Skip to content

Commit 7433165

Browse files
committed
Revert "Delete test_scaffold.py"
This reverts commit de9e87f.
1 parent f46d5db commit 7433165

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

tests/test_scaffold.py

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)