resubmit 0.0.8__tar.gz → 0.0.9__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {resubmit-0.0.8/src/resubmit.egg-info → resubmit-0.0.9}/PKG-INFO +1 -1
- {resubmit-0.0.8 → resubmit-0.0.9}/pyproject.toml +1 -1
- {resubmit-0.0.8 → resubmit-0.0.9}/src/resubmit/__submit.py +1 -1
- {resubmit-0.0.8 → resubmit-0.0.9/src/resubmit.egg-info}/PKG-INFO +1 -1
- {resubmit-0.0.8 → resubmit-0.0.9}/tests/test_resubmit.py +6 -3
- {resubmit-0.0.8 → resubmit-0.0.9}/LICENSE +0 -0
- {resubmit-0.0.8 → resubmit-0.0.9}/README.md +0 -0
- {resubmit-0.0.8 → resubmit-0.0.9}/setup.cfg +0 -0
- {resubmit-0.0.8 → resubmit-0.0.9}/src/resubmit/__bookkeeping.py +0 -0
- {resubmit-0.0.8 → resubmit-0.0.9}/src/resubmit/__debug.py +0 -0
- {resubmit-0.0.8 → resubmit-0.0.9}/src/resubmit/__init__.py +0 -0
- {resubmit-0.0.8 → resubmit-0.0.9}/src/resubmit.egg-info/SOURCES.txt +0 -0
- {resubmit-0.0.8 → resubmit-0.0.9}/src/resubmit.egg-info/dependency_links.txt +0 -0
- {resubmit-0.0.8 → resubmit-0.0.9}/src/resubmit.egg-info/requires.txt +0 -0
- {resubmit-0.0.8 → resubmit-0.0.9}/src/resubmit.egg-info/top_level.txt +0 -0
- {resubmit-0.0.8 → resubmit-0.0.9}/tests/test_bookkeeping.py +0 -0
|
@@ -31,12 +31,15 @@ def test_maybe_attach_debugger_noop():
|
|
|
31
31
|
maybe_attach_debugger(0)
|
|
32
32
|
|
|
33
33
|
|
|
34
|
-
def test_runs_only_the_first_job_in_debug_mode(
|
|
34
|
+
def test_runs_only_the_first_job_in_debug_mode():
|
|
35
35
|
jobs = [{"id": 1}, {"id": 2}, {"id": 3}]
|
|
36
36
|
|
|
37
|
+
def dummy_func_single(job):
|
|
38
|
+
return f"ok-{job['id']}"
|
|
39
|
+
|
|
37
40
|
res = _submit_jobs(
|
|
38
41
|
jobs,
|
|
39
|
-
|
|
42
|
+
dummy_func_single,
|
|
40
43
|
timeout_min=1,
|
|
41
44
|
local_run=True,
|
|
42
45
|
num_gpus=0,
|
|
@@ -48,7 +51,7 @@ def test_runs_only_the_first_job_in_debug_mode(monkeypatch):
|
|
|
48
51
|
debug=True,
|
|
49
52
|
)
|
|
50
53
|
# only the first job should be run in debug mode
|
|
51
|
-
assert res ==
|
|
54
|
+
assert res == "ok-1"
|
|
52
55
|
|
|
53
56
|
|
|
54
57
|
def test_slurm_parameters_optional(monkeypatch):
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|