diff options
author | Andrei Zeliankou <zelenkov@nginx.com> | 2020-12-08 14:37:33 +0000 |
---|---|---|
committer | Andrei Zeliankou <zelenkov@nginx.com> | 2020-12-08 14:37:33 +0000 |
commit | b2e767819f04153944d525ef8d97d2f3a7a9af74 (patch) | |
tree | 29748112e707e1cdd3cb1b556a3f437114e5898a /test/test_configuration.py | |
parent | 8f916285639d7f9aac9ef03cace5e4dcbcca70cd (diff) | |
download | unit-b2e767819f04153944d525ef8d97d2f3a7a9af74.tar.gz unit-b2e767819f04153944d525ef8d97d2f3a7a9af74.tar.bz2 |
Tests: skip_alert() converted to the fixture.
Diffstat (limited to 'test/test_configuration.py')
-rw-r--r-- | test/test_configuration.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/test/test_configuration.py b/test/test_configuration.py index d1e6f000..7feb3adb 100644 --- a/test/test_configuration.py +++ b/test/test_configuration.py @@ -1,6 +1,5 @@ import pytest -from conftest import skip_alert from unit.control import TestControl @@ -337,7 +336,7 @@ class TestConfiguration(TestControl): assert 'success' in self.conf(conf) - def test_unprivileged_user_error(self, is_su): + def test_unprivileged_user_error(self, is_su, skip_alert): skip_alert(r'cannot set user "root"', r'failed to apply new conf') if is_su: pytest.skip('unprivileged tests') |