Skip to content

Commit

Permalink
Merge pull request #3 from Parsl/add_integration_tests
Browse files Browse the repository at this point in the history
Adding integration tests
  • Loading branch information
yadudoc authored Nov 26, 2024
2 parents 09e7996 + 3544570 commit aace6ab
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/gce_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ jobs:
run: |
python3 -m pip install -U pip
python3 -m pip install pre-commit tox globus-compute-endpoint
python3 -m pip install .
- name: start globus_compute_endpoint
env:
Expand Down
Empty file.
20 changes: 20 additions & 0 deletions globus_compute_executor/tests/integration/test_basic.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import os

from globus_compute_sdk import Executor

from globus_compute_executor import GlobusComputeExecutor
from globus_compute_executor.tests.utils import double


def test_simple():
endpoint_id = os.environ["GLOBUS_COMPUTE_ENDPOINT"]

executor = GlobusComputeExecutor(executor=Executor(endpoint_id=endpoint_id))

futures = {}
for i in range(5):
future = executor.submit(double, {}, i)
futures[i] = future

for key in futures:
assert futures[key].result(timeout=120) == key * 2
3 changes: 3 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ skip_missing_interpreters = true
[testenv]
passenv =
COMPUTE_INTEGRATION_TEST_WEB_URL
GLOBUS_COMPUTE_ENDPOINT
GLOBUS_COMPUTE_CLIENT_ID
GLOBUS_COMPUTE_CLIENT_SECRET
usedevelop = true
extras = test
commands =
Expand Down

0 comments on commit aace6ab

Please sign in to comment.