Skip to content

Commit

Permalink
Make the output site directory.
Browse files Browse the repository at this point in the history
  • Loading branch information
mblayman committed Oct 6, 2015
1 parent b09cdb7 commit 10d7e94
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion handroll/scaffolder.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,5 +44,5 @@ def make_scaffold(scaffold, site):
scaffold=scaffold)))
if os.path.exists(site):
raise AbortError(_('{site} already exists.'.format(site=site)))
# TODO: make the site directory.
os.makedirs(site)
# TODO: populate the site with content from the scaffold.
7 changes: 7 additions & 0 deletions handroll/tests/test_scaffolder.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Copyright (c) 2015, Matt Layman

import os
import tempfile

import mock
Expand Down Expand Up @@ -46,3 +47,9 @@ def test_existing_site_directory_aborts(self):
self.fail()
except AbortError:
pass

def test_makes_site_root(self):
parent = tempfile.mkdtemp()
site = os.path.join(parent, 'site')
scaffolder.make_scaffold('default', site)
self.assertTrue(os.path.exists(site))

0 comments on commit 10d7e94

Please sign in to comment.