From 31ff94add9c4043a753683d9e8b68733c69aa1ac Mon Sep 17 00:00:00 2001 From: Andrei Zeliankou Date: Mon, 29 May 2023 16:45:49 +0100 Subject: Tests: more fixtures. Common methods from applications/proto.py converted to the fixtures. sysctl check moved to the specific file where it is using. Some options moved to the constructor to have early access. --- test/test_configuration.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'test/test_configuration.py') diff --git a/test/test_configuration.py b/test/test_configuration.py index d774ceb3..e78a2957 100644 --- a/test/test_configuration.py +++ b/test/test_configuration.py @@ -2,7 +2,6 @@ import socket import pytest from unit.control import TestControl -from unit.option import option class TestConfiguration(TestControl): @@ -227,8 +226,8 @@ class TestConfiguration(TestControl): {"*:7080": {"pass": "applications/app"}}, 'listeners' ), 'listeners no app' - def test_listeners_unix_abstract(self): - if option.system != 'Linux': + def test_listeners_unix_abstract(self, system): + if system != 'Linux': assert 'error' in self.try_addr("unix:@sock"), 'abstract at' pytest.skip('not yet') -- cgit