Scheduled service maintenance on November 22


On Friday, November 22, 2024, between 06:00 CET and 18:00 CET, GIN services will undergo planned maintenance. Extended service interruptions should be expected. We will try to keep downtimes to a minimum, but recommend that users avoid critical tasks, large data uploads, or DOI requests during this time.

We apologize for any inconvenience.

test_common.py 923 B

12345678910111213141516171819202122232425262728293031323334353637
  1. import unittest
  2. from dataladmetadatamodel.common import (
  3. get_top_level_metadata_objects,
  4. get_top_nodes_and_metadata_root_record
  5. )
  6. from dataladmetadatamodel.metadatapath import MetadataPath
  7. from dataladmetadatamodel.tests.utils import get_uuid
  8. uuid_0 = get_uuid(0)
  9. class TestTopLevelObjects(unittest.TestCase):
  10. @unittest.skip
  11. def test_top_level_metadata_objects(self):
  12. a, b = get_top_level_metadata_objects(
  13. "git",
  14. "/home/henry/datalad/inm7-studies/superset"
  15. )
  16. print(a, b)
  17. @unittest.skip
  18. def test_top_nodes_and_metadata_root_record(self):
  19. a, b, c = get_top_nodes_and_metadata_root_record(
  20. "git",
  21. "/home/henry/datalad/inm7-studies/superset",
  22. uuid_0,
  23. "v1",
  24. MetadataPath("a/b/c"),
  25. True
  26. )
  27. print(a, b, c)
  28. if __name__ == '__main__':
  29. unittest.main()