From 0583b8bad4cfc01a4dedc5815ca767fe38f5a728 Mon Sep 17 00:00:00 2001 From: martinRenou Date: Fri, 9 Nov 2018 14:52:27 +0100 Subject: [PATCH] Add missing test features to README --- README.rst | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/README.rst b/README.rst index 4d7f73d..8835d9f 100644 --- a/README.rst +++ b/README.rst @@ -66,6 +66,23 @@ Example {'code': '6*7', 'result': '42'} ] + # Samples of code which needs completion + completion_samples = [ + {'text': 'my_long', 'matches': ['my_long_variable_name', 'my_long_function_name']}, + {'text': 'a.', 'matches': ['a.foo', 'a.bar']} + ] + + # Samples of code which are complete, incomplete, or invalid + complete_code_samples = ['a = 3'] + incomplete_code_samples = ['def foo:'] + invalid_code_samples = ['this is invalid python code, right?'] + + # Sample of code which can be inspected + code_inspect_sample = 'print?' + + # Sample of code which should clear the output + code_clear_output = 'clear' + # Samples of code which should generate a rich display output, and # the expected MIME type code_display_data = [