From c7612d6f1a81c1c4d0528267c0a852f735ec2f75 Mon Sep 17 00:00:00 2001 From: Daniel <daniel@harvey> Date: Wed, 19 Aug 2020 08:40:05 +0200 Subject: [PATCH] Revert "ENH: Test for server issue 99." This reverts commit 63c8db1f6364cf82c3a3be2adf047528357bbbb9. --- tests/test_issues_server.py | 29 ----------------------------- 1 file changed, 29 deletions(-) diff --git a/tests/test_issues_server.py b/tests/test_issues_server.py index 557a524..2f4b5c5 100644 --- a/tests/test_issues_server.py +++ b/tests/test_issues_server.py @@ -24,10 +24,6 @@ """Tests for issues on gitlab.com, project caosdb-server.""" -import os -import tempfile -import time - import caosdb as db from caosdb.exceptions import EntityError, TransactionError import pytest @@ -141,28 +137,3 @@ def test_issue_85_b(): C.update() C.add_parent(A) C.update() # Failed at this step - - -def test_issue_99(): - """Checksum updating failed with versioning enabled. - """ - - # Using files in extroot, because this allows us to update the file content from the outside. - local_dir = os.path.join(db.get_config().get("IntegrationTests", - "test_files.test_insert_files_in_dir.local"), - "test_issue_99") - docker_dir = os.path.join(db.get_config().get("IntegrationTests", - "test_files.test_insert_files_in_dir.server"), - "test_issue_99") - os.makedirs(local_dir) - with tempfile.NamedTemporaryFile(dir=local_dir) as file_99: - # Create File entity in CaosDB - c = db.Container() - c.insert(unique=False, raise_exception_on_error=False, - flags={"InsertFilesInDir": docker_dir}) - dbfile = c[0] - - # Checksum should exist after a short time - time.sleep(0.5) - dbfile.retrieve() - assert dbfile.checksum is not None -- GitLab