Repository: aazuspan/sankee (language: python)

Issue:
Example not working
It seems the example no longer works. Getting `EEException: Element.propertyNames: Parameter 'element' is required.`

```python
import sankee
import ee

ee.Initialize()

sankee.datasets.LCMS_LC.sankify(
  years=[1990, 2000, 2010, 2020],
  region=ee.Geometry.Point([-122.192688, 46.25917]).buffer(2000),
  max_classes=3,
  title="Mt. St. Helens Recovery"
)
```

![image](https://github.com/aazuspan/sankee/assets/5016453/bae534eb-ba02-4b1f-af1e-55a8f7ceab46)



Discussion / hints:

Fix patch:
diff --git a/sankee/datasets.py b/sankee/datasets.py
index 548537c..d910ecf 100644
--- a/sankee/datasets.py
+++ b/sankee/datasets.py
@@ -231,7 +231,7 @@ def get_year(self, year: int) -> ee.Image:
 
 LCMS_LU = LCMS_Dataset(
     name="LCMS LU - Land Change Monitoring System Land Use",
-    id="USFS/GTAC/LCMS/v2021-7",
+    id="USFS/GTAC/LCMS/v2022-8",
     band="Land_Use",
     labels={
         1: "Agriculture",
@@ -251,14 +251,14 @@ def get_year(self, year: int) -> ee.Image:
         6: "#c2b34a",
         7: "#1B1716",
     },
-    years=tuple(range(1985, 2022)),
+    years=tuple(range(1985, 2023)),
     nodata=7,
 )
 
 # https://developers.google.com/earth-engine/datasets/catalog/USFS_GTAC_LCMS_v2020-5
 LCMS_LC = LCMS_Dataset(
     name="LCMS LC - Land Change Monitoring System Land Cover",
-    id="USFS/GTAC/LCMS/v2021-7",
+    id="USFS/GTAC/LCMS/v2022-8",
     band="Land_Cover",
     labels={
         1: "Trees",
@@ -294,7 +294,7 @@ def get_year(self, year: int) -> ee.Image:
         14: "#4780f3",
         15: "#1B1716",
     },
-    years=tuple(range(1985, 2022)),
+    years=tuple(range(1985, 2023)),
     nodata=15,
 )
 
@@ -663,7 +663,7 @@ def get_year(self, year: int) -> ee.Image:
         7: "#FFFFFF",
         8: "#B3B0A3",
     },
-    years=tuple(range(1985, 2021)),
+    years=tuple(range(1985, 2022)),
 )
 
 CORINE = Dataset(


Test patch:
diff --git a/tests/test_datasets.py b/tests/test_datasets.py
index 56a7b56..bd9f7b7 100644
--- a/tests/test_datasets.py
+++ b/tests/test_datasets.py
@@ -18,14 +18,14 @@ def test_get_year_nlcd():
 def test_get_year_LCMS_LC():
     dataset = sankee.datasets.LCMS_LC
     img = dataset.get_year(2016)
-    assert img.get("system:id").getInfo() == "USFS/GTAC/LCMS/v2021-7/LCMS_CONUS_v2021-7_2016"
+    assert img.get("system:id").getInfo() == "USFS/GTAC/LCMS/v2022-8/LCMS_CONUS_v2022-8_2016"
     assert img.bandNames().getInfo() == [dataset.band]
 
 
 def test_get_year_LCMS_LU():
     dataset = sankee.datasets.LCMS_LU
     img = dataset.get_year(2016)
-    assert img.get("system:id").getInfo() == "USFS/GTAC/LCMS/v2021-7/LCMS_CONUS_v2021-7_2016"
+    assert img.get("system:id").getInfo() == "USFS/GTAC/LCMS/v2022-8/LCMS_CONUS_v2022-8_2016"
     assert img.bandNames().getInfo() == [dataset.band]
 
 
@@ -66,7 +66,7 @@ def test_get_year_LCMAP():
     img = dataset.get_year(2016)
     assert (
         img.get("system:id").getInfo()
-        == "projects/sat-io/open-datasets/LCMAP/LCPRI/LCMAP_CU_2016_V12_LCPRI"
+        == "projects/sat-io/open-datasets/LCMAP/LCPRI/LCMAP_CU_2016_V13_LCPRI"
     )
     assert img.bandNames().getInfo() == [dataset.band]
 
@@ -80,9 +80,9 @@ def test_get_year_CORINE():
     assert img.bandNames().getInfo() == [dataset.band]
 
 
-def test_years():
-    for dataset in sankee.datasets.datasets:
-        assert dataset.years == tuple(dataset.list_years().getInfo())
+@pytest.mark.parametrize("dataset", sankee.datasets.datasets, ids=lambda d: d.name)
+def test_years(dataset):
+    assert dataset.years == tuple(dataset.list_years().getInfo())
 
 
 def test_get_unsupported_year():