1
0
mirror of synced 2026-01-07 00:05:48 -05:00
Files
airbyte/airbyte-integrations/connectors/destination-sqlite/unit_tests/unit_test.py
Cole Snodgrass 2e099acc52 update headers from 2022 -> 2023 (#22594)
* It's 2023!

* 2022 -> 2023

---------

Co-authored-by: evantahler <evan@airbyte.io>
2023-02-08 13:01:16 -08:00

25 lines
611 B
Python

#
# Copyright (c) 2023 Airbyte, Inc., all rights reserved.
#
import pytest
from destination_sqlite import DestinationSqlite
def test_get_destination_path():
user_input = "sqlite.db"
expected = "/local/sqlite.db"
out = DestinationSqlite._get_destination_path(user_input)
assert out == expected
user_input = "/local/sqlite.db"
expected = "/local/sqlite.db"
out = DestinationSqlite._get_destination_path(user_input)
assert out == expected
invalid_input = "/sqlite.db"
with pytest.raises(ValueError):
_ = DestinationSqlite._get_destination_path(invalid_input)