Add project names
This commit is contained in:
parent
53b3d29baa
commit
c63c709c79
2 changed files with 7 additions and 0 deletions
|
@ -27,3 +27,7 @@ class Project:
|
|||
|
||||
def exists(self):
|
||||
return self.root.exists() and self.root.is_dir()
|
||||
|
||||
@property
|
||||
def name(self):
|
||||
return self.root.name
|
||||
|
|
|
@ -19,3 +19,6 @@ class ProjectTestCase(BaseTestCase):
|
|||
process = self.project.processes[0]
|
||||
self.assertEqual(process.name, "web")
|
||||
self.assertEqual(process.command, "python -m http.server $PORT")
|
||||
|
||||
def test_name(self):
|
||||
self.assertEqual(self.project.name, 'example')
|
||||
|
|
Reference in a new issue