Skip to content

Commit 9e27dcd

Browse files
committed
Fix test for fixing permissions
1 parent 1316985 commit 9e27dcd

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

conda-store-server/tests/_internal/action/test_actions.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
# Use of this source code is governed by a BSD-style
33
# license that can be found in the LICENSE file.
44

5+
import os
56
import asyncio
67
import datetime
78
import pathlib
@@ -243,7 +244,9 @@ def test_set_conda_prefix_permissions(tmp_path, conda_store, simple_conda_lock):
243244
uid=None,
244245
gid=None,
245246
)
246-
assert "no changes for permissions of conda_prefix" in context.stdout.getvalue()
247+
248+
stats = os.stat(conda_prefix)
249+
assert oct(stats.st_mode & 0o777) == "0o755"
247250
assert "no changes for gid and uid of conda_prefix" in context.stdout.getvalue()
248251

249252

0 commit comments

Comments
 (0)