summaryrefslogtreecommitdiff
path: root/test/t/unit/test_unit_quote_readline.py
blob: e2b437e37ca1fb8b187234e8b441941ae26ea4c0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import pytest

from conftest import assert_bash_exec


@pytest.mark.bashcomp(cmd=None)
class TestUnitQuoteReadline:
    def test_exec(self, bash):
        assert_bash_exec(bash, "quote_readline '' >/dev/null")

    def test_env_non_pollution(self, bash):
        """Test environment non-pollution, detected at teardown."""
        assert_bash_exec(
            bash, "foo() { quote_readline meh >/dev/null; }; foo; unset foo"
        )