h5rdmtoolbox 2.3.0__tar.gz → 2.3.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (146) hide show
  1. {h5rdmtoolbox-2.3.0 → h5rdmtoolbox-2.3.1}/PKG-INFO +1 -1
  2. {h5rdmtoolbox-2.3.0 → h5rdmtoolbox-2.3.1}/h5rdmtoolbox/ld/utils.py +1 -1
  3. {h5rdmtoolbox-2.3.0 → h5rdmtoolbox-2.3.1}/h5rdmtoolbox.egg-info/PKG-INFO +1 -1
  4. {h5rdmtoolbox-2.3.0 → h5rdmtoolbox-2.3.1}/h5rdmtoolbox.egg-info/SOURCES.txt +1 -0
  5. {h5rdmtoolbox-2.3.0 → h5rdmtoolbox-2.3.1}/setup.cfg +1 -1
  6. h5rdmtoolbox-2.3.1/tests/ld/test_utils.py +13 -0
  7. {h5rdmtoolbox-2.3.0 → h5rdmtoolbox-2.3.1}/tests/test_version.py +3 -3
  8. {h5rdmtoolbox-2.3.0 → h5rdmtoolbox-2.3.1}/LICENSE +0 -0
  9. {h5rdmtoolbox-2.3.0 → h5rdmtoolbox-2.3.1}/README.md +0 -0
  10. {h5rdmtoolbox-2.3.0 → h5rdmtoolbox-2.3.1}/h5rdmtoolbox/__init__.py +0 -0
  11. {h5rdmtoolbox-2.3.0 → h5rdmtoolbox-2.3.1}/h5rdmtoolbox/_cfg.py +0 -0
  12. {h5rdmtoolbox-2.3.0 → h5rdmtoolbox-2.3.1}/h5rdmtoolbox/_repr.py +0 -0
  13. {h5rdmtoolbox-2.3.0 → h5rdmtoolbox-2.3.1}/h5rdmtoolbox/_version.py +0 -0
  14. {h5rdmtoolbox-2.3.0 → h5rdmtoolbox-2.3.1}/h5rdmtoolbox/cli.py +0 -0
  15. {h5rdmtoolbox-2.3.0 → h5rdmtoolbox-2.3.1}/h5rdmtoolbox/consts.py +0 -0
  16. {h5rdmtoolbox-2.3.0 → h5rdmtoolbox-2.3.1}/h5rdmtoolbox/convention/__init__.py +0 -0
  17. {h5rdmtoolbox-2.3.0 → h5rdmtoolbox-2.3.1}/h5rdmtoolbox/convention/cfg.py +0 -0
  18. {h5rdmtoolbox-2.3.0 → h5rdmtoolbox-2.3.1}/h5rdmtoolbox/convention/consts.py +0 -0
  19. {h5rdmtoolbox-2.3.0 → h5rdmtoolbox-2.3.1}/h5rdmtoolbox/convention/core.py +0 -0
  20. {h5rdmtoolbox-2.3.0 → h5rdmtoolbox-2.3.1}/h5rdmtoolbox/convention/errors.py +0 -0
  21. {h5rdmtoolbox-2.3.0 → h5rdmtoolbox-2.3.1}/h5rdmtoolbox/convention/generate.py +0 -0
  22. {h5rdmtoolbox-2.3.0 → h5rdmtoolbox-2.3.1}/h5rdmtoolbox/convention/ontology/__init__.py +0 -0
  23. {h5rdmtoolbox-2.3.0 → h5rdmtoolbox-2.3.1}/h5rdmtoolbox/convention/ontology/h5ontocls.py +0 -0
  24. {h5rdmtoolbox-2.3.0 → h5rdmtoolbox-2.3.1}/h5rdmtoolbox/convention/ontology/hdf_datatypes.py +0 -0
  25. {h5rdmtoolbox-2.3.0 → h5rdmtoolbox-2.3.1}/h5rdmtoolbox/convention/references.py +0 -0
  26. {h5rdmtoolbox-2.3.0 → h5rdmtoolbox-2.3.1}/h5rdmtoolbox/convention/standard_attributes.py +0 -0
  27. {h5rdmtoolbox-2.3.0 → h5rdmtoolbox-2.3.1}/h5rdmtoolbox/convention/toolbox_validators.py +0 -0
  28. {h5rdmtoolbox-2.3.0 → h5rdmtoolbox-2.3.1}/h5rdmtoolbox/convention/utils.py +0 -0
  29. {h5rdmtoolbox-2.3.0 → h5rdmtoolbox-2.3.1}/h5rdmtoolbox/data/def_icon.png +0 -0
  30. {h5rdmtoolbox-2.3.0 → h5rdmtoolbox-2.3.1}/h5rdmtoolbox/data/fluid-v1.yml +0 -0
  31. {h5rdmtoolbox-2.3.0 → h5rdmtoolbox-2.3.1}/h5rdmtoolbox/data/h5tbx.yaml +0 -0
  32. {h5rdmtoolbox-2.3.0 → h5rdmtoolbox-2.3.1}/h5rdmtoolbox/data/id_icon.png +0 -0
  33. {h5rdmtoolbox-2.3.0 → h5rdmtoolbox-2.3.1}/h5rdmtoolbox/data/iri_icon.png +0 -0
  34. {h5rdmtoolbox-2.3.0 → h5rdmtoolbox-2.3.1}/h5rdmtoolbox/data/ld_icon.png +0 -0
  35. {h5rdmtoolbox-2.3.0 → h5rdmtoolbox-2.3.1}/h5rdmtoolbox/data/piv-v1.yml +0 -0
  36. {h5rdmtoolbox-2.3.0 → h5rdmtoolbox-2.3.1}/h5rdmtoolbox/data/style.css +0 -0
  37. {h5rdmtoolbox-2.3.0 → h5rdmtoolbox-2.3.1}/h5rdmtoolbox/data/tutorial_convention.yaml +0 -0
  38. {h5rdmtoolbox-2.3.0 → h5rdmtoolbox-2.3.1}/h5rdmtoolbox/data/tutorial_standard_name_table.yaml +0 -0
  39. {h5rdmtoolbox-2.3.0 → h5rdmtoolbox-2.3.1}/h5rdmtoolbox/data/type_icon.png +0 -0
  40. {h5rdmtoolbox-2.3.0 → h5rdmtoolbox-2.3.1}/h5rdmtoolbox/database/__init__.py +0 -0
  41. {h5rdmtoolbox-2.3.0 → h5rdmtoolbox-2.3.1}/h5rdmtoolbox/database/hdfdb/__init__.py +0 -0
  42. {h5rdmtoolbox-2.3.0 → h5rdmtoolbox-2.3.1}/h5rdmtoolbox/database/hdfdb/filedb.py +0 -0
  43. {h5rdmtoolbox-2.3.0 → h5rdmtoolbox-2.3.1}/h5rdmtoolbox/database/hdfdb/objdb.py +0 -0
  44. {h5rdmtoolbox-2.3.0 → h5rdmtoolbox-2.3.1}/h5rdmtoolbox/database/hdfdb/query.py +0 -0
  45. {h5rdmtoolbox-2.3.0 → h5rdmtoolbox-2.3.1}/h5rdmtoolbox/database/hdfdb/utils.py +0 -0
  46. {h5rdmtoolbox-2.3.0 → h5rdmtoolbox-2.3.1}/h5rdmtoolbox/database/interface.py +0 -0
  47. {h5rdmtoolbox-2.3.0 → h5rdmtoolbox-2.3.1}/h5rdmtoolbox/database/lazy.py +0 -0
  48. {h5rdmtoolbox-2.3.0 → h5rdmtoolbox-2.3.1}/h5rdmtoolbox/database/mongo.py +0 -0
  49. {h5rdmtoolbox-2.3.0 → h5rdmtoolbox-2.3.1}/h5rdmtoolbox/errors.py +0 -0
  50. {h5rdmtoolbox-2.3.0 → h5rdmtoolbox-2.3.1}/h5rdmtoolbox/extensions/__init__.py +0 -0
  51. {h5rdmtoolbox-2.3.0 → h5rdmtoolbox-2.3.1}/h5rdmtoolbox/extensions/magnitude.py +0 -0
  52. {h5rdmtoolbox-2.3.0 → h5rdmtoolbox-2.3.1}/h5rdmtoolbox/extensions/normalize.py +0 -0
  53. {h5rdmtoolbox-2.3.0 → h5rdmtoolbox-2.3.1}/h5rdmtoolbox/extensions/onto.py +0 -0
  54. {h5rdmtoolbox-2.3.0 → h5rdmtoolbox-2.3.1}/h5rdmtoolbox/extensions/units.py +0 -0
  55. {h5rdmtoolbox-2.3.0 → h5rdmtoolbox-2.3.1}/h5rdmtoolbox/extensions/vector.py +0 -0
  56. {h5rdmtoolbox-2.3.0 → h5rdmtoolbox-2.3.1}/h5rdmtoolbox/gui/__init__.py +0 -0
  57. {h5rdmtoolbox-2.3.0 → h5rdmtoolbox-2.3.1}/h5rdmtoolbox/gui/fairify.py +0 -0
  58. {h5rdmtoolbox-2.3.0 → h5rdmtoolbox-2.3.1}/h5rdmtoolbox/gui/src/__init__.py +0 -0
  59. {h5rdmtoolbox-2.3.0 → h5rdmtoolbox-2.3.1}/h5rdmtoolbox/gui/src/main.py +0 -0
  60. {h5rdmtoolbox-2.3.0 → h5rdmtoolbox-2.3.1}/h5rdmtoolbox/identifiers.py +0 -0
  61. {h5rdmtoolbox-2.3.0 → h5rdmtoolbox-2.3.1}/h5rdmtoolbox/layout/__init__.py +0 -0
  62. {h5rdmtoolbox-2.3.0 → h5rdmtoolbox-2.3.1}/h5rdmtoolbox/layout/core.py +0 -0
  63. {h5rdmtoolbox-2.3.0 → h5rdmtoolbox-2.3.1}/h5rdmtoolbox/ld/__init__.py +0 -0
  64. {h5rdmtoolbox-2.3.0 → h5rdmtoolbox-2.3.1}/h5rdmtoolbox/ld/globals.py +0 -0
  65. {h5rdmtoolbox-2.3.0 → h5rdmtoolbox-2.3.1}/h5rdmtoolbox/ld/hdf/__init__.py +0 -0
  66. {h5rdmtoolbox-2.3.0 → h5rdmtoolbox-2.3.1}/h5rdmtoolbox/ld/hdf/attributes.py +0 -0
  67. {h5rdmtoolbox-2.3.0 → h5rdmtoolbox-2.3.1}/h5rdmtoolbox/ld/hdf/datasets.py +0 -0
  68. {h5rdmtoolbox-2.3.0 → h5rdmtoolbox-2.3.1}/h5rdmtoolbox/ld/hdf/file.py +0 -0
  69. {h5rdmtoolbox-2.3.0 → h5rdmtoolbox-2.3.1}/h5rdmtoolbox/ld/hdf/groups.py +0 -0
  70. {h5rdmtoolbox-2.3.0 → h5rdmtoolbox-2.3.1}/h5rdmtoolbox/ld/rdf.py +0 -0
  71. {h5rdmtoolbox-2.3.0 → h5rdmtoolbox-2.3.1}/h5rdmtoolbox/ld/user/__init__.py +0 -0
  72. {h5rdmtoolbox-2.3.0 → h5rdmtoolbox-2.3.1}/h5rdmtoolbox/ld/user/attributes.py +0 -0
  73. {h5rdmtoolbox-2.3.0 → h5rdmtoolbox-2.3.1}/h5rdmtoolbox/ld/user/datasets.py +0 -0
  74. {h5rdmtoolbox-2.3.0 → h5rdmtoolbox-2.3.1}/h5rdmtoolbox/ld/user/file.py +0 -0
  75. {h5rdmtoolbox-2.3.0 → h5rdmtoolbox-2.3.1}/h5rdmtoolbox/ld/user/groups.py +0 -0
  76. {h5rdmtoolbox-2.3.0 → h5rdmtoolbox-2.3.1}/h5rdmtoolbox/plotting.py +0 -0
  77. {h5rdmtoolbox-2.3.0 → h5rdmtoolbox-2.3.1}/h5rdmtoolbox/protected_attributes.py +0 -0
  78. {h5rdmtoolbox-2.3.0 → h5rdmtoolbox-2.3.1}/h5rdmtoolbox/protocols.py +0 -0
  79. {h5rdmtoolbox-2.3.0 → h5rdmtoolbox-2.3.1}/h5rdmtoolbox/repository/__init__.py +0 -0
  80. {h5rdmtoolbox-2.3.0 → h5rdmtoolbox-2.3.1}/h5rdmtoolbox/repository/interface.py +0 -0
  81. {h5rdmtoolbox-2.3.0 → h5rdmtoolbox-2.3.1}/h5rdmtoolbox/repository/utils.py +0 -0
  82. {h5rdmtoolbox-2.3.0 → h5rdmtoolbox-2.3.1}/h5rdmtoolbox/repository/zenodo/__init__.py +0 -0
  83. {h5rdmtoolbox-2.3.0 → h5rdmtoolbox-2.3.1}/h5rdmtoolbox/repository/zenodo/core.py +0 -0
  84. {h5rdmtoolbox-2.3.0 → h5rdmtoolbox-2.3.1}/h5rdmtoolbox/repository/zenodo/metadata.py +0 -0
  85. {h5rdmtoolbox-2.3.0 → h5rdmtoolbox-2.3.1}/h5rdmtoolbox/repository/zenodo/tokens.py +0 -0
  86. {h5rdmtoolbox-2.3.0 → h5rdmtoolbox-2.3.1}/h5rdmtoolbox/repository/zenodo/utils.py +0 -0
  87. {h5rdmtoolbox-2.3.0 → h5rdmtoolbox-2.3.1}/h5rdmtoolbox/tutorial.py +0 -0
  88. {h5rdmtoolbox-2.3.0 → h5rdmtoolbox-2.3.1}/h5rdmtoolbox/user.py +0 -0
  89. {h5rdmtoolbox-2.3.0 → h5rdmtoolbox-2.3.1}/h5rdmtoolbox/utils.py +0 -0
  90. {h5rdmtoolbox-2.3.0 → h5rdmtoolbox-2.3.1}/h5rdmtoolbox/wrapper/__init__.py +0 -0
  91. {h5rdmtoolbox-2.3.0 → h5rdmtoolbox-2.3.1}/h5rdmtoolbox/wrapper/accessor.py +0 -0
  92. {h5rdmtoolbox-2.3.0 → h5rdmtoolbox-2.3.1}/h5rdmtoolbox/wrapper/accessors/__init__.py +0 -0
  93. {h5rdmtoolbox-2.3.0 → h5rdmtoolbox-2.3.1}/h5rdmtoolbox/wrapper/accessors/provenance.py +0 -0
  94. {h5rdmtoolbox-2.3.0 → h5rdmtoolbox-2.3.1}/h5rdmtoolbox/wrapper/core.py +0 -0
  95. {h5rdmtoolbox-2.3.0 → h5rdmtoolbox-2.3.1}/h5rdmtoolbox/wrapper/ds_decoder.py +0 -0
  96. {h5rdmtoolbox-2.3.0 → h5rdmtoolbox-2.3.1}/h5rdmtoolbox/wrapper/h5attr.py +0 -0
  97. {h5rdmtoolbox-2.3.0 → h5rdmtoolbox-2.3.1}/h5rdmtoolbox/wrapper/h5ext.py +0 -0
  98. {h5rdmtoolbox-2.3.0 → h5rdmtoolbox-2.3.1}/h5rdmtoolbox/wrapper/h5utils.py +0 -0
  99. {h5rdmtoolbox-2.3.0 → h5rdmtoolbox-2.3.1}/h5rdmtoolbox/wrapper/h5yaml.py +0 -0
  100. {h5rdmtoolbox-2.3.0 → h5rdmtoolbox-2.3.1}/h5rdmtoolbox/wrapper/jsonld.py +0 -0
  101. {h5rdmtoolbox-2.3.0 → h5rdmtoolbox-2.3.1}/h5rdmtoolbox/wrapper/xr2hdf.py +0 -0
  102. {h5rdmtoolbox-2.3.0 → h5rdmtoolbox-2.3.1}/h5rdmtoolbox.egg-info/dependency_links.txt +0 -0
  103. {h5rdmtoolbox-2.3.0 → h5rdmtoolbox-2.3.1}/h5rdmtoolbox.egg-info/entry_points.txt +0 -0
  104. {h5rdmtoolbox-2.3.0 → h5rdmtoolbox-2.3.1}/h5rdmtoolbox.egg-info/requires.txt +0 -0
  105. {h5rdmtoolbox-2.3.0 → h5rdmtoolbox-2.3.1}/h5rdmtoolbox.egg-info/top_level.txt +0 -0
  106. {h5rdmtoolbox-2.3.0 → h5rdmtoolbox-2.3.1}/pyproject.toml +0 -0
  107. {h5rdmtoolbox-2.3.0 → h5rdmtoolbox-2.3.1}/setup.py +0 -0
  108. {h5rdmtoolbox-2.3.0 → h5rdmtoolbox-2.3.1}/tests/__init__.py +0 -0
  109. {h5rdmtoolbox-2.3.0 → h5rdmtoolbox-2.3.1}/tests/clean_zenodo_sandbox.py +0 -0
  110. {h5rdmtoolbox-2.3.0 → h5rdmtoolbox-2.3.1}/tests/conventions/__init__.py +0 -0
  111. {h5rdmtoolbox-2.3.0 → h5rdmtoolbox-2.3.1}/tests/conventions/test_convention_vfuncs.py +0 -0
  112. {h5rdmtoolbox-2.3.0 → h5rdmtoolbox-2.3.1}/tests/conventions/test_conventions.py +0 -0
  113. {h5rdmtoolbox-2.3.0 → h5rdmtoolbox-2.3.1}/tests/conventions/test_engmeta.py +0 -0
  114. {h5rdmtoolbox-2.3.0 → h5rdmtoolbox-2.3.1}/tests/conventions/test_references.py +0 -0
  115. {h5rdmtoolbox-2.3.0 → h5rdmtoolbox-2.3.1}/tests/conventions/test_toolbox_validators.py +0 -0
  116. {h5rdmtoolbox-2.3.0 → h5rdmtoolbox-2.3.1}/tests/conventions/test_utils.py +0 -0
  117. {h5rdmtoolbox-2.3.0 → h5rdmtoolbox-2.3.1}/tests/database/__init__.py +0 -0
  118. {h5rdmtoolbox-2.3.0 → h5rdmtoolbox-2.3.1}/tests/database/test_find_rdf.py +0 -0
  119. {h5rdmtoolbox-2.3.0 → h5rdmtoolbox-2.3.1}/tests/database/test_hdfDB.py +0 -0
  120. {h5rdmtoolbox-2.3.0 → h5rdmtoolbox-2.3.1}/tests/database/test_mongo.py +0 -0
  121. {h5rdmtoolbox-2.3.0 → h5rdmtoolbox-2.3.1}/tests/layouts/__init__.py +0 -0
  122. {h5rdmtoolbox-2.3.0 → h5rdmtoolbox-2.3.1}/tests/layouts/test_core.py +0 -0
  123. {h5rdmtoolbox-2.3.0 → h5rdmtoolbox-2.3.1}/tests/layouts/test_docs.py +0 -0
  124. {h5rdmtoolbox-2.3.0 → h5rdmtoolbox-2.3.1}/tests/ld/__init__.py +0 -0
  125. {h5rdmtoolbox-2.3.0 → h5rdmtoolbox-2.3.1}/tests/ld/test_ld.py +0 -0
  126. {h5rdmtoolbox-2.3.0 → h5rdmtoolbox-2.3.1}/tests/ld/test_rdf.py +0 -0
  127. {h5rdmtoolbox-2.3.0 → h5rdmtoolbox-2.3.1}/tests/ld/test_user_graph.py +0 -0
  128. {h5rdmtoolbox-2.3.0 → h5rdmtoolbox-2.3.1}/tests/repository/__init__.py +0 -0
  129. {h5rdmtoolbox-2.3.0 → h5rdmtoolbox-2.3.1}/tests/repository/test_zenodo.py +0 -0
  130. {h5rdmtoolbox-2.3.0 → h5rdmtoolbox-2.3.1}/tests/test_cli.py +0 -0
  131. {h5rdmtoolbox-2.3.0 → h5rdmtoolbox-2.3.1}/tests/test_config.py +0 -0
  132. {h5rdmtoolbox-2.3.0 → h5rdmtoolbox-2.3.1}/tests/test_extensions.py +0 -0
  133. {h5rdmtoolbox-2.3.0 → h5rdmtoolbox-2.3.1}/tests/test_identifiers.py +0 -0
  134. {h5rdmtoolbox-2.3.0 → h5rdmtoolbox-2.3.1}/tests/test_plotting.py +0 -0
  135. {h5rdmtoolbox-2.3.0 → h5rdmtoolbox-2.3.1}/tests/test_repr.py +0 -0
  136. {h5rdmtoolbox-2.3.0 → h5rdmtoolbox-2.3.1}/tests/test_user.py +0 -0
  137. {h5rdmtoolbox-2.3.0 → h5rdmtoolbox-2.3.1}/tests/test_utils.py +0 -0
  138. {h5rdmtoolbox-2.3.0 → h5rdmtoolbox-2.3.1}/tests/test_xarray_export.py +0 -0
  139. {h5rdmtoolbox-2.3.0 → h5rdmtoolbox-2.3.1}/tests/wrapper/__init__.py +0 -0
  140. {h5rdmtoolbox-2.3.0 → h5rdmtoolbox-2.3.1}/tests/wrapper/test_core.py +0 -0
  141. {h5rdmtoolbox-2.3.0 → h5rdmtoolbox-2.3.1}/tests/wrapper/test_dump.py +0 -0
  142. {h5rdmtoolbox-2.3.0 → h5rdmtoolbox-2.3.1}/tests/wrapper/test_file.py +0 -0
  143. {h5rdmtoolbox-2.3.0 → h5rdmtoolbox-2.3.1}/tests/wrapper/test_h5ext.py +0 -0
  144. {h5rdmtoolbox-2.3.0 → h5rdmtoolbox-2.3.1}/tests/wrapper/test_lazy.py +0 -0
  145. {h5rdmtoolbox-2.3.0 → h5rdmtoolbox-2.3.1}/tests/wrapper/test_namespaces.py +0 -0
  146. {h5rdmtoolbox-2.3.0 → h5rdmtoolbox-2.3.1}/tests/wrapper/test_xr2df.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: h5rdmtoolbox
3
- Version: 2.3.0
3
+ Version: 2.3.1
4
4
  Summary: Supporting a FAIR Research Data lifecycle using Python and HDF5.
5
5
  Home-page: https://h5rdmtoolbox.readthedocs.io/en/latest/
6
6
  Author: Matthias Probst
@@ -9,7 +9,7 @@ from rdflib.namespace import XSD
9
9
 
10
10
 
11
11
  def _parse_obj_name(obj_name: str):
12
- return urllib.parse.quote(obj_name, safe='')
12
+ return urllib.parse.quote(obj_name, safe='/')
13
13
 
14
14
 
15
15
  def get_attr_dtype_as_XSD(data):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: h5rdmtoolbox
3
- Version: 2.3.0
3
+ Version: 2.3.1
4
4
  Summary: Supporting a FAIR Research Data lifecycle using Python and HDF5.
5
5
  Home-page: https://h5rdmtoolbox.readthedocs.io/en/latest/
6
6
  Author: Matthias Probst
@@ -132,6 +132,7 @@ tests/ld/__init__.py
132
132
  tests/ld/test_ld.py
133
133
  tests/ld/test_rdf.py
134
134
  tests/ld/test_user_graph.py
135
+ tests/ld/test_utils.py
135
136
  tests/repository/__init__.py
136
137
  tests/repository/test_zenodo.py
137
138
  tests/wrapper/__init__.py
@@ -1,6 +1,6 @@
1
1
  [metadata]
2
2
  name = h5rdmtoolbox
3
- version = 2.3.0
3
+ version = 2.3.1
4
4
  author = Matthias Probst
5
5
  author_email = matth.probst@gmail.com
6
6
  description = Supporting a FAIR Research Data lifecycle using Python and HDF5.
@@ -0,0 +1,13 @@
1
+ import unittest
2
+
3
+ from h5rdmtoolbox.ld.utils import _parse_obj_name
4
+
5
+
6
+ class TestUtile(unittest.TestCase):
7
+
8
+ def test_parsing_obj_names(self):
9
+ self.assertEqual(_parse_obj_name("/"), "/")
10
+ self.assertEqual(_parse_obj_name(" "), "%20")
11
+ self.assertEqual(_parse_obj_name("/My Group/"), "/My%20Group/")
12
+ self.assertEqual(_parse_obj_name("/My Group/My Dataset"), "/My%20Group/My%20Dataset")
13
+ self.assertEqual(_parse_obj_name("/My !&9]231,.0Group/My Dataset "), "/My%20%21%269%5D231%2C.0Group/My%20Dataset%20")
@@ -1,6 +1,7 @@
1
1
  import pathlib
2
2
  import unittest
3
- from datetime import datetime
3
+
4
+ import yaml
4
5
 
5
6
  from h5rdmtoolbox import __version__, get_package_meta
6
7
 
@@ -34,14 +35,13 @@ class TestVersion(unittest.TestCase):
34
35
  found = False
35
36
  for line in lines:
36
37
  if 'pip install' in line:
37
- self.assertEqual(line.strip(), f'"# !pip install h5rdmtoolbox=={__version__}"')
38
+ self.assertTrue(f'"# !pip install h5rdmtoolbox=={__version__}"' in line.strip())
38
39
  found = True
39
40
  break
40
41
  self.assertTrue(found)
41
42
 
42
43
  def test_citation_cff(self):
43
44
  citation_cff = __this_dir__ / "../CITATION.cff"
44
- import yaml
45
45
  with open(citation_cff, 'r') as f:
46
46
  cff = yaml.safe_load(f)
47
47
  self.assertTrue("todo" not in cff["doi"].lower(), "Please replace 'todo' in CITATION.cff")
File without changes
File without changes
File without changes