Skip to content

Commit

Permalink
notes not shown (failing test first)
Browse files Browse the repository at this point in the history
  • Loading branch information
wardi committed Jul 29, 2015
1 parent 572bfb4 commit e4941f5
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions ckanext/scheming/tests/test_dataset_display.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,15 @@ def test_choice_field_shows_labels(self):
app = self._get_test_app()
response = app.get(url='/dataset/with-choice')
assert_true('Hybrid Camel' in response.body)

def test_notes_field_displayed(self):
user = Sysadmin()
d = Dataset(
user=user,
type='dataset',
name='plain-jane',
notes='# styled notes',
)
app = self._get_test_app()
response = app.get(url='/dataset/plain-jane')
assert_true('<h1>styled notes' in response.body)

0 comments on commit e4941f5

Please sign in to comment.