From e4941f50b81dda324acb102b9462ba3046ede940 Mon Sep 17 00:00:00 2001 From: Ian Ward Date: Wed, 29 Jul 2015 17:32:22 -0400 Subject: [PATCH] notes not shown (failing test first) --- ckanext/scheming/tests/test_dataset_display.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/ckanext/scheming/tests/test_dataset_display.py b/ckanext/scheming/tests/test_dataset_display.py index 3af2f156..064decf5 100644 --- a/ckanext/scheming/tests/test_dataset_display.py +++ b/ckanext/scheming/tests/test_dataset_display.py @@ -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('

styled notes' in response.body)