Пример #1
0
def test_6():
    lt_in = run_shell.get_lt_in('--no-specials', latex_6, 'utf-8')
    assert lt_in == lt_in_6
Пример #2
0
def test_2(options, lt_in_expected):
    lt_in = run_shell.get_lt_in(options, latex_2, 'utf-8')
    assert lt_in == lt_in_expected
Пример #3
0
def test_4(options, lt_in_expected):
    repl = test_dir + 'repls.txt'
    lt_in = run_shell.get_lt_in(options + ' --replace ' + repl,
                                            latex_4, 'utf-8')
    assert lt_in == lt_in_expected
Пример #4
0
def test_5():
#   this will echo 'koma' and 'lang':
#   lt_in = run_shell.get_lt_in('--packages ""', latex_5, 'utf-8')
    lt_in = run_shell.get_lt_in('--packages "" --add-modules '
                                + test_dir + 'modules.tex', latex_5, 'utf-8')
    assert lt_in == lt_in_5
Пример #5
0
def test_4():
    lt_in = run_shell.get_lt_in('--multi-language --ml-disable x,y', latex_4,
                                'utf-8')
    assert lt_in == lt_in_4
Пример #6
0
def test_3():
    lt_in = run_shell.get_lt_in('--define ' + test_dir + 'defs.tex',
                                                latex_3, 'utf-8')
    assert lt_in == lt_in_3
Пример #7
0
def test_2():
    lt_in = run_shell.get_lt_in('--multi-language', latex_2, 'utf-8')
    assert lt_in == lt_in_2
Пример #8
0
def test_3():
    lt_in = run_shell.get_lt_in('--multi-language --ml-continue-threshold 0',
                                latex_3, 'utf-8')
    assert lt_in == lt_in_3
Пример #9
0
def test_1():
    lt_in = run_shell.get_lt_in('', latex_1, 'utf-8')
    assert lt_in == lt_in_1
Пример #10
0
def test_8():
    lt_in = run_shell.get_lt_in(
        '--multi-language --lang en-GB --define ' + test_dir + 'defs.tex',
        latex_8, 'utf-8')
    assert lt_in == lt_in_8
Пример #11
0
def test_7():
    lt_in = run_shell.get_lt_in('--multi-language --lang en-GB', latex_7,
                                'utf-8')
    assert lt_in == lt_in_7
Пример #12
0
def test_6():
    lt_in = run_shell.get_lt_in('--multi-language --ml-disablecategories x,y',
                                latex_6, 'utf-8')
    assert lt_in == lt_in_6
Пример #13
0
def test_5():
    lt_in = run_shell.get_lt_in(
        '--multi-language --ml-disable x,y' + ' --ml-rule-threshold 0',
        latex_5, 'utf-8')
    assert lt_in == lt_in_5