Skip to content

Commit

Permalink
Fix destination setup in test
Browse files Browse the repository at this point in the history
  • Loading branch information
steinitzu committed Sep 13, 2024
1 parent 65f6ef7 commit 6c29071
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/load/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,11 @@ def setup_pipeline(
"""Convenience method to setup pipeline with this configuration"""

self.dev_mode = dev_mode
destination = kwargs.pop("destination", None) or self.destination_factory(**kwargs)
destination = kwargs.pop("destination")
if destination is None:
destination = self.destination_factory(**kwargs)
else:
self.setup()
pipeline = dlt.pipeline(
pipeline_name=pipeline_name,
destination=destination,
Expand Down

0 comments on commit 6c29071

Please sign in to comment.