From 534bc31d2a274b32e208e39db7d309d3a1660e02 Mon Sep 17 00:00:00 2001 From: Oly Date: Mon, 10 Dec 2018 14:21:21 +0000 Subject: [PATCH] Add test for export settings attributes --- tests/test_code_blocks.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/tests/test_code_blocks.py b/tests/test_code_blocks.py index b89cce4..1fbca80 100644 --- a/tests/test_code_blocks.py +++ b/tests/test_code_blocks.py @@ -32,3 +32,17 @@ def test_block_settings(): assert result[1].value == expected[1].value assert result[1].attrs == expected[1].attrs #assert result == expected + + +def test_export_settings(): + document = StringIO(""" + #+TITLE: Tests +#+BEGIN_SRC shell :exports results +elcato create --path=/tmp/myblog +#+END_SRC + +#+RESULTS: +result block here + """) + result = parse(document).doc + assert result[2].attrs.get('exports') == ['results']