Skip to content

Commit

Permalink
fix destination test
Browse files Browse the repository at this point in the history
  • Loading branch information
sh-rp committed Nov 22, 2023
1 parent 694bf0a commit 2a1556d
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions tests/common/test_destination.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,12 @@ def test_invalid_destination_reference() -> None:

def test_import_all_destinations() -> None:
# this must pass without the client dependencies being imported
for dest_name in ACTIVE_DESTINATIONS:
dest = Destination.from_reference(dest_name, None, dest_name + "_name", "production")
assert dest.name == dest_name
for dest_type in ACTIVE_DESTINATIONS:
dest = Destination.from_reference(dest_type, None, dest_type + "_name", "production")
assert dest.destination_type == dest_type
assert dest.name == dest_type + "_name"
assert dest.config_params["environment"] == "production"
assert dest.config_params["name"] == dest_name + "_name"
assert dest.config_params["name"] == dest_type + "_name"
dest.spec()
assert isinstance(dest.capabilities(), DestinationCapabilitiesContext)

Expand Down

0 comments on commit 2a1556d

Please sign in to comment.