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
 
@@ -41,13 +41,13 @@ def test_client_command_available_with_help():
 

	
 
    # John can see that the command accepts a single positional
 
    # argument - an entity name.
 
    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):
 
    # John is about to issue a client certificate. He switches to his
 
    # project directory.
 
    tmpdir.chdir()
functional_tests/test_renew.py
Show inline comments
 
@@ -43,13 +43,13 @@ def test_renew_command_available_with_help():
 

	
 
    # John can see that the command accepts two positional argument -
 
    # type of entity, and entity name.
 
    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):
 
    # John decides it's time to renew one of the certificates. He
 
    # switches to his project directory.
 
    tmpdir.chdir()
setup.py
Show inline comments
 
@@ -33,20 +33,20 @@ install_requirements = [
 

	
 
doc_requirements = [
 
    'sphinx>=7.1,<7.2',
 
]
 

	
 
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',
 
]
 

	
 
release_requirements = [
 
    'twine',
 
]
0 comments (0 inline, 0 general)