Browse Source

Fix revert to version and restore test.

Stefano Cossu 5 years ago
parent
commit
08f01e638c
2 changed files with 1 additions and 4 deletions
  1. 1 1
      lakesuperior/endpoints/ldp.py
  2. 0 3
      tests/2_endpoints/test_ldp.py

+ 1 - 1
lakesuperior/endpoints/ldp.py

@@ -497,7 +497,7 @@ def patch_version(uid, ver_uid):
     :param str ver_uid: Version UID.
     """
     try:
-        rsrc_api.revert_to_version(uid, rsrc_uid)
+        rsrc_api.revert_to_version(uid, ver_uid)
     except ResourceNotExistsError as e:
         return str(e), 404
     except InvalidResourceError as e:

+ 0 - 3
tests/2_endpoints/test_ldp.py

@@ -1372,9 +1372,6 @@ class TestVersion:
         assert v1_uri != dup_uri
 
 
-    @pytest.mark.skip(
-            reason='TODO Reverting from version and resurrecting is not fully '
-            'functional.')
     def test_revert_version(self):
         """
         Take a version snapshot, update a resource, and then revert to the