##// END OF EJS Templates
tests: refactor TestINI to different name so it doesn't confuse pytest.
marcink -
r131:39302703 default
parent child Browse files
Show More
@@ -22,7 +22,7 b' import tempfile'
22 22 import configobj
23 23
24 24
25 class TestINI(object):
25 class ContextINI(object):
26 26 """
27 27 Allows to create a new test.ini file as a copy of existing one with edited
28 28 data. If existing file is not present, it creates a new one. Example usage::
@@ -21,7 +21,7 b' import time'
21 21
22 22 import pytest
23 23
24 from fixture import TestINI
24 from fixture import ContextINI
25 25
26 26
27 27 @pytest.mark.parametrize("arguments, expected_texts", [
@@ -66,7 +66,7 b' def test_vcsserver_with_config(vcsserver'
66 66 {'DEFAULT': {'port': vcsserver_port}},
67 67 ]
68 68
69 with TestINI('test.ini', ini_def) as new_test_ini_path:
69 with ContextINI('test.ini', ini_def) as new_test_ini_path:
70 70 output = call_vcs_server_with_arguments(
71 71 ['--config=' + new_test_ini_path])
72 72
@@ -85,7 +85,7 b' def test_vcsserver_with_config_cli_overw'
85 85 {'DEFAULT': {'threadpool_size': '111'}},
86 86 {'DEFAULT': {'timeout': '0'}},
87 87 ]
88 with TestINI('test.ini', ini_def) as new_test_ini_path:
88 with ContextINI('test.ini', ini_def) as new_test_ini_path:
89 89 output = call_vcs_server_with_arguments([
90 90 '--config=' + new_test_ini_path,
91 91 '--host=128.0.0.1',
General Comments 0
You need to be logged in to leave comments. Login now