Coverage for rest_framework/utils/formatting : + 97% +
+
+ From 3d4bb4b5533fa281c2f11c12ceb0a9ae61aa0d54 Mon Sep 17 00:00:00 2001 From: Tom Christie Date: Fri, 21 Jun 2013 22:03:07 +0100 Subject: Ensure action kwargs properly handdled. Refs #940. --- htmlcov/rest_framework_utils_formatting.html | 241 +++++++++++++++++++++++++++ 1 file changed, 241 insertions(+) create mode 100644 htmlcov/rest_framework_utils_formatting.html (limited to 'htmlcov/rest_framework_utils_formatting.html') diff --git a/htmlcov/rest_framework_utils_formatting.html b/htmlcov/rest_framework_utils_formatting.html new file mode 100644 index 00000000..54e1570f --- /dev/null +++ b/htmlcov/rest_framework_utils_formatting.html @@ -0,0 +1,241 @@ + + +
+ + + + +
+
+Hot-keys on this page
++ r + m + x + p toggle line displays +
++ j + k next/prev highlighted chunk +
++ 0 (zero) top of page +
++ 1 (one) first highlighted chunk +
+| + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + | +
+ """ +Utility functions to return a formatted name and description for a given view. +""" + ++ + + + + + + + """ +Strip trailing component `trailing` from `content` if it exists. +Used when generating names from view classes. +""" + + + ++ + + """ +Remove leading indent from a block of text. +Used when generating descriptions from docstrings. +""" + +for line in content.splitlines()[1:] if line.lstrip()] ++ # unindent the content if needed + + + + + ++ + + """ +Translate 'CamelCaseNames' to 'Camel Case Names'. +Used when generating names from view classes. +""" + + + ++ + + """ +Return a formatted name for an `APIView` class or `@api_view` function. +""" + + + + + + + ++ + + """ +Return a description for an `APIView` class or `@api_view` function. +""" + + + + + ++ + + """ +Apply HTML markup to the given description. +""" + + +else: +description = escape(description).replace('\n', '<br />') + + + |
+