How to use the fava.core.file.leading_space function in fava

To help you get started, we’ve selected a few fava examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github beancount / fava / tests / test_core_file.py View on Github external
def test_leading_space():
    assert leading_space("test") == ""
    assert leading_space("	test") == "	"
    assert leading_space("  test") == "  "
    assert leading_space('    2016-10-31 * "Test" "Test"') == "    "
    assert leading_space("\r\t\r\ttest") == "\r\t\r\t"
    assert leading_space("\ntest") == "\n"
github beancount / fava / tests / test_core_file.py View on Github external
def test_leading_space():
    assert leading_space("test") == ""
    assert leading_space("	test") == "	"
    assert leading_space("  test") == "  "
    assert leading_space('    2016-10-31 * "Test" "Test"') == "    "
    assert leading_space("\r\t\r\ttest") == "\r\t\r\t"
    assert leading_space("\ntest") == "\n"
github beancount / fava / tests / test_core_file.py View on Github external
def test_leading_space():
    assert leading_space("test") == ""
    assert leading_space("	test") == "	"
    assert leading_space("  test") == "  "
    assert leading_space('    2016-10-31 * "Test" "Test"') == "    "
    assert leading_space("\r\t\r\ttest") == "\r\t\r\t"
    assert leading_space("\ntest") == "\n"
github beancount / fava / tests / test_core_file.py View on Github external
def test_leading_space():
    assert leading_space("test") == ""
    assert leading_space("	test") == "	"
    assert leading_space("  test") == "  "
    assert leading_space('    2016-10-31 * "Test" "Test"') == "    "
    assert leading_space("\r\t\r\ttest") == "\r\t\r\t"
    assert leading_space("\ntest") == "\n"
github beancount / fava / tests / test_core_file.py View on Github external
def test_leading_space():
    assert leading_space("test") == ""
    assert leading_space("	test") == "	"
    assert leading_space("  test") == "  "
    assert leading_space('    2016-10-31 * "Test" "Test"') == "    "
    assert leading_space("\r\t\r\ttest") == "\r\t\r\t"
    assert leading_space("\ntest") == "\n"
github beancount / fava / tests / test_core_file.py View on Github external
def test_leading_space():
    assert leading_space("test") == ""
    assert leading_space("	test") == "	"
    assert leading_space("  test") == "  "
    assert leading_space('    2016-10-31 * "Test" "Test"') == "    "
    assert leading_space("\r\t\r\ttest") == "\r\t\r\t"
    assert leading_space("\ntest") == "\n"