opteryx-catalog 0.4.4__py3-none-any.whl

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.
@@ -0,0 +1,15 @@
1
+ from opteryx_catalog.catalog.metadata import DatasetMetadata
2
+ from opteryx_catalog.catalog.dataset import SimpleDataset
3
+
4
+
5
+ def test_dataset_metadata_and_simpledataset():
6
+ meta = DatasetMetadata(
7
+ dataset_identifier="tests_temp.test",
8
+ location="gs://bucket/ws/tests_temp/test",
9
+ schema=None,
10
+ properties={},
11
+ )
12
+ ds = SimpleDataset(identifier="tests_temp.test", _metadata=meta)
13
+ assert ds.metadata.dataset_identifier == "tests_temp.test"
14
+ assert ds.snapshot() is None
15
+ assert list(ds.snapshots()) == []
tests/test_import.py ADDED
@@ -0,0 +1,5 @@
1
+ def test_import_opteryx_catalog():
2
+ import importlib
3
+
4
+ mod = importlib.import_module("opteryx_catalog")
5
+ assert mod is not None
@@ -0,0 +1,8 @@
1
+ import pathlib
2
+ import tomllib
3
+
4
+
5
+ def test_pyproject_name():
6
+ p = pathlib.Path("pyproject.toml")
7
+ data = tomllib.loads(p.read_text())
8
+ assert data.get("project", {}).get("name") == "opteryx-catalog"