aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rwxr-xr-xtest/python/do_it.sh20
-rw-r--r--test/python/scenarios.json41
2 files changed, 22 insertions, 39 deletions
diff --git a/test/python/do_it.sh b/test/python/do_it.sh
new file mode 100755
index 0000000..ec72b52
--- /dev/null
+++ b/test/python/do_it.sh
@@ -0,0 +1,20 @@
+#!/bin/bash
+
+set -e
+
+# Optional: Import test library
+source dev-container-features-test-lib
+
+# Always run these checks as the non-root user
+user="$(whoami)"
+
+which python3
+
+check "has python" python --version
+
+result=$(python3 -c 'import select; print(select)')
+echo "result: $result"
+
+check "select is built-in" bash -c "python3 -c 'import select; print(select)' | grep 'built-in'"
+
+reportResults
diff --git a/test/python/scenarios.json b/test/python/scenarios.json
index 920f4a2..348ac52 100644
--- a/test/python/scenarios.json
+++ b/test/python/scenarios.json
@@ -1,43 +1,6 @@
{
- "install_additional_python": {
- "image": "ubuntu:focal",
- "features": {
- "python": {
- "version": "3.11",
- "additionalVersions": "3.8,3.9.13,3.10.5"
- }
- }
- },
- "install_jupyterlab": {
- "image": "mcr.microsoft.com/devcontainers/base:focal",
- "remoteUser": "vscode",
- "features": {
- "python": {
- "installJupyterlab": true,
- "configureJupyterlabAllowOrigin": "*"
- }
- }
- },
- "install_additional_jupyterlab": {
- "image": "mcr.microsoft.com/devcontainers/base:focal",
- "remoteUser": "vscode",
- "features": {
- "python": {
- "version": "latest",
- "additionalVersions": "3.9",
- "installJupyterlab": true,
- "configureJupyterlabAllowOrigin": "*"
- }
- }
- },
- "install_os_provided_python": {
- "image": "mcr.microsoft.com/devcontainers/base:0-bullseye",
- "features": {
- "python": "os-provided"
- }
- },
- "install_via_oryx": {
- "image": "mcr.microsoft.com/oryx/build:full-debian-bullseye",
+ "do_it": {
+ "image": "mcr.microsoft.com/devcontainers/base:ubuntu",
"features": {
"python": "3.10"
}