Skip to content

Commit

Permalink
Add integration test for loading deps w/o deps (#188)
Browse files Browse the repository at this point in the history
  • Loading branch information
ddriddle authored Mar 25, 2024
1 parent eedf629 commit 0c2e99c
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions src/integration_tests/tests/plugin.bats
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
load 'clean'

@test "Ensure plugin does not require external modules" {
PYTHON=$TEST_TEMP_DIR/venv/bin/python

if [ $RUNNER_OS == "Windows" ]; then
skip "This test does not support Windows."
fi

# Install awscli-login without deps
python -m venv $TEST_TEMP_DIR/venv
$PYTHON -m pip install --no-deps ../..

# Import plugin in clean venv
$PYTHON -c 'import awscli_login'

# Load version in clean venv
$PYTHON -c 'from awscli_login._version import __version__'
}

0 comments on commit 0c2e99c

Please sign in to comment.