Skip to content

Commit

Permalink
fix install/uninstall tests
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronsteers committed Mar 18, 2024
1 parent f65895c commit b2f014d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tests/integration_tests/test_source_test_fixture.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
from airbyte.version import get_version
from airbyte.results import ReadResult
from airbyte.datasets import CachedDataset, LazyDataset, SQLDataset
from airbyte._executor import _get_bin_dir
import airbyte as ab

from airbyte.results import ReadResult
Expand Down Expand Up @@ -719,7 +720,7 @@ def test_install_uninstall():
assert not os.path.exists(install_root / ".venv-source-test")

# use which to check if the executable is available
assert not shutil.which("source-test") and not shutil.which("source-test.exe")
assert shutil.which("source-test") is None

# assert that the connector is not available
with pytest.raises(Exception):
Expand All @@ -728,11 +729,11 @@ def test_install_uninstall():
source.install()

assert os.path.exists(install_root / ".venv-source-test")
assert os.path.exists(install_root / ".venv-source-test/bin/source-test")
assert os.path.exists(_get_bin_dir(install_root / ".venv-source-test"))

source.check()

source.uninstall()

assert not os.path.exists(install_root / ".venv-source-test")
assert not os.path.exists(install_root / ".venv-source-test/bin/source-test")
assert not os.path.exists(_get_bin_dir(install_root / ".venv-source-test"))

0 comments on commit b2f014d

Please sign in to comment.