From 271d7aeb2b0dec0beee940a657253f12423d8be6 Mon Sep 17 00:00:00 2001 From: Cyber MacGeddon Date: Wed, 3 Sep 2025 15:20:44 +0100 Subject: [PATCH] Fixing tests --- tests/unit/test_storage/test_triples_cassandra_storage.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/tests/unit/test_storage/test_triples_cassandra_storage.py b/tests/unit/test_storage/test_triples_cassandra_storage.py index a4af0408..9ff03d1f 100644 --- a/tests/unit/test_storage/test_triples_cassandra_storage.py +++ b/tests/unit/test_storage/test_triples_cassandra_storage.py @@ -55,7 +55,7 @@ class TestCassandraStorageProcessor: assert processor.password is None def test_processor_initialization_backward_compatibility(self): - \"\"\"Test processor initialization with old graph_* parameters (backward compatibility)\"\"\" + """Test processor initialization with old graph_* parameters (backward compatibility)""" taskgroup_mock = MagicMock() processor = Processor( @@ -70,7 +70,7 @@ class TestCassandraStorageProcessor: assert processor.password == 'old-pass' def test_processor_parameter_precedence(self): - \"\"\"Test that new cassandra_* parameters take precedence over old graph_* parameters\"\"\" + """Test that new cassandra_* parameters take precedence over old graph_* parameters""" taskgroup_mock = MagicMock() processor = Processor( @@ -310,7 +310,9 @@ class TestCassandraStorageProcessor: # Check that help text includes environment variable info help_text = parser.format_help() - assert 'env-host1,env-host2' in help_text + # Argparse may break lines, so check for components + assert 'env-' in help_text and 'host1' in help_text + assert 'env-host2' in help_text assert 'env-user' in help_text assert '' in help_text # Password should be hidden assert 'env-pass' not in help_text # Password value not shown