-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
47 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,13 @@ | ||
# Copyright (c) 2015, Matt Layman | ||
|
||
from handroll.i18n import _ | ||
|
||
BUILTIN_SCAFFOLDS = { | ||
'default': _('A complete site to get you going'), | ||
} | ||
LIST_SCAFFOLDS = 1 | ||
|
||
|
||
def get_label(scaffold): | ||
"""Get the label for the scaffold.""" | ||
return BUILTIN_SCAFFOLDS[scaffold] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# Copyright (c) 2015, Matt Layman | ||
|
||
from handroll import scaffolder | ||
from handroll.i18n import _ | ||
from handroll.tests import TestCase | ||
|
||
|
||
class TestScaffolder(TestCase): | ||
|
||
def test_default_scaffolder_label(self): | ||
label = scaffolder.get_label('default') | ||
self.assertEqual(_('A complete site to get you going'), label) |