mirror of
https://github.com/trustgraph-ai/trustgraph.git
synced 2026-07-25 05:01:01 +02:00
Fixing tests
This commit is contained in:
parent
cb5a2c49c8
commit
271d7aeb2b
1 changed files with 5 additions and 3 deletions
|
|
@ -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 '<set>' in help_text # Password should be hidden
|
||||
assert 'env-pass' not in help_text # Password value not shown
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue