archive
/
catfish
Archived
1
Fork 0

Add project names

This commit is contained in:
Jake Howard 2018-12-18 15:34:57 +00:00
parent 53b3d29baa
commit c63c709c79
Signed by: jake
GPG Key ID: 57AFB45680EDD477
2 changed files with 7 additions and 0 deletions

View File

@ -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

View File

@ -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')