mirror of
https://github.com/trustgraph-ai/trustgraph.git
synced 2026-07-24 12:41:02 +02:00
Fixing tests
This commit is contained in:
parent
04698a35b7
commit
8667e604cc
1 changed files with 2 additions and 1 deletions
|
|
@ -59,6 +59,7 @@ class TestTriplesWriterConfiguration:
|
||||||
def test_backward_compatibility_graph_params(self, mock_trust_graph):
|
def test_backward_compatibility_graph_params(self, mock_trust_graph):
|
||||||
"""Test backward compatibility with old graph_* parameter names."""
|
"""Test backward compatibility with old graph_* parameter names."""
|
||||||
processor = TriplesWriter(
|
processor = TriplesWriter(
|
||||||
|
taskgroup=MagicMock(),
|
||||||
graph_host='compat-host',
|
graph_host='compat-host',
|
||||||
graph_username='compat-user',
|
graph_username='compat-user',
|
||||||
graph_password='compat-pass'
|
graph_password='compat-pass'
|
||||||
|
|
@ -116,7 +117,7 @@ class TestObjectsWriterConfiguration:
|
||||||
mock_cluster.return_value = mock_cluster_instance
|
mock_cluster.return_value = mock_cluster_instance
|
||||||
|
|
||||||
with patch.dict(os.environ, env_vars, clear=True):
|
with patch.dict(os.environ, env_vars, clear=True):
|
||||||
processor = ObjectsWriter()
|
processor = ObjectsWriter(taskgroup=MagicMock())
|
||||||
processor.connect_cassandra()
|
processor.connect_cassandra()
|
||||||
|
|
||||||
# Verify cluster was called with hosts list
|
# Verify cluster was called with hosts list
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue