Changeset - 67e54e3374dd
[Not reviewed]
0 3 0
Branko Majic (branko) - 3 months ago 2025-09-07 00:00:20
branko@majic.rs
GC-48: Update the test framework:

- Slight change required for handling differences in how the output
lines are being broken up during testing.
3 files changed with 7 insertions and 7 deletions:
0 comments (0 inline, 0 general)
functional_tests/test_client.py
Show inline comments
 
@@ -44,7 +44,7 @@ def test_client_command_available_with_help():
 
    assert exit_code == 0
 
    assert stderr == ""
 
    assert stdout.startswith("usage: gimmecert client")
 
    assert stdout.split('\n')[2].endswith(" entity_name")  # Third line of help.
 
    assert stdout.split('\n')[0].endswith(" entity_name")  # First line of help.
 

	
 

	
 
def test_client_command_requires_initialised_hierarchy(tmpdir):
functional_tests/test_renew.py
Show inline comments
 
@@ -46,7 +46,7 @@ def test_renew_command_available_with_help():
 
    assert exit_code == 0
 
    assert stderr == ""
 
    assert stdout.startswith("usage: gimmecert renew")
 
    assert stdout.split('\n')[3].endswith("{server,client} entity_name")  # Fourth line of help (first two are options)
 
    assert stdout.split('\n')[0].endswith("{server,client} entity_name")  # First line of help.
 

	
 

	
 
def test_renew_command_requires_initialised_hierarchy(tmpdir):
setup.py
Show inline comments
 
@@ -36,14 +36,14 @@ doc_requirements = [
 
]
 

	
 
test_lint_requirements = [
 
    'flake8>=7.0,<7.1',
 
    'flake8>=7.3,<7.4',
 
]
 

	
 
test_requirements = [
 
    'time-machine>=2.13,<2.14',
 
    'pytest>=8.0,<8.1',
 
    'pytest-cov>=4.1,<4.2',
 
    'tox>=4.13,<4.14',
 
    'time-machine>=2.19,<2.20',
 
    'pytest>=8.4,<8.5',
 
    'pytest-cov>=6.3,<6.4',
 
    'tox>=4.30,<4.31',
 
    'pexpect>=4.9,<4.10',
 
]
 

	
0 comments (0 inline, 0 general)