Skip to content

Commit 55309f8

Browse files
authored
Merge pull request #268 from adswa/maint
MNT: Account for a number of deprecations in core
2 parents 8ed8cca + 9fa80bd commit 55309f8

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

changelog.d/pr-268.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
### 🐛 Bug Fixes
2+
3+
- MNT: Account for a number of deprecations in core. [PR #268](https://github.com/datalad/datalad-container/pull/268) (by [@adswa](https://github.com/adswa))

datalad_container/containers_add.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ def __call__(name, url=None, dataset=None, call_fmt=None, image=None,
275275
# XXX: check=False is used to avoid dropping the image. It
276276
# should use drop=False if remove() gets such an option (see
277277
# DataLad's gh-2673).
278-
for r in ds.remove(image, save=False, check=False,
278+
for r in ds.remove(image, reckless='availability',
279279
return_type="generator"):
280280
yield r
281281

datalad_container/tests/test_containers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ def test_container_files(ds_path=None, local_file=None, url=None):
107107
# non-default location:
108108
ds.config.add("datalad.containers.location",
109109
value=op.join(".datalad", "test-environments"),
110-
where='dataset')
110+
scope='branch')
111111
ds.save(message="Configure container mountpoint", **common_kwargs)
112112

113113
# no containers yet:
@@ -278,7 +278,7 @@ def test_container_from_subdataset(ds_path=None, src_subds_path=None, local_file
278278
# not installed subdataset doesn't pose an issue:
279279
sub2 = ds.create("sub2", **common_kwargs)
280280
assert_result_count(ds.subdatasets(**common_kwargs), 2, type="dataset")
281-
ds.uninstall("sub2", check=False, **common_kwargs)
281+
ds.drop("sub2", reckless='availability', what='datasets', **common_kwargs)
282282
from datalad.tests.utils_pytest import assert_false
283283
assert_false(sub2.is_installed())
284284

0 commit comments

Comments
 (0)