Allow tests to be run by root. Fixes #1784

This commit is contained in:
grossmj committed 2020-06-29 18:43:35 +09:30
1 parent 8bd3e2346b
commit 27da8458e8
3 files changed
+13 -10

No files matched your search

+2
View File
@@ -17,6 +17,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
import os
import sys
import uuid
import asyncio
import pytest
@@ -149,6 +150,7 @@ async def test_project_delete():
assert os.path.exists(directory) is False
@pytest.mark.skipif(not sys.platform.startswith("win") and os.getuid() == 0, reason="Root can delete any project")
async def test_project_delete_permission_issue():
project = Project(project_id=str(uuid4()))