Browse Source

[DATALAD] Recorded changes

Daniel Busch 2 months ago
parent
commit
62cd163f94
1 changed files with 49 additions and 49 deletions
  1. 49 49
      tests/unit/test_download.py

+ 49 - 49
tests/unit/test_download.py

@@ -1,49 +1,49 @@
-import pytest
-import requests
-
-from faostat_data_primap.download import (
-    calculate_checksum,
-    download_methodology,
-    find_previous_release_path,
-)
-
-
-@pytest.fixture
-def temp_domain_directories(tmp_path):
-    """
-    Sets up a temporary directory structure for domains and releases for testing.
-
-    Parameters
-    ----------
-    tmp_path : pathlib.Path
-        A pytest-provided temporary directory path.
-
-    Returns
-    -------
-    dict
-        A dictionary containing the paths to the `downloaded_data` directory,
-        the specific domain directory, and a list of sorted release paths.
-    """
-    downloaded_data = tmp_path / "downloaded_data"
-    downloaded_data.mkdir()
-
-    domains = (
-        "farm_gate_emissions_crops",
-        "farm_gate_livestock",
-        "farm_gate_agriculture_energy",
-        "land_use_forests",
-        "land_use_fires",
-        "land_use_drained_organic_soils",
-        "pre_post_agricultural_production",
-    )
-    domain_paths = []
-
-    for domain in domains:
-        domain_path = downloaded_data / domain
-        domain_path.mkdir()
-        domain_paths.append(domain_path)
-
-    return {
-        "downloaded_data": downloaded_data,
-        "domain_paths": domain_paths,
-    }
+# import pytest
+# import requests
+#
+# from faostat_data_primap.download import (
+#     calculate_checksum,
+#     download_methodology,
+#     find_previous_release_path,
+# )
+#
+#
+# @pytest.fixture
+# def temp_domain_directories(tmp_path):
+#     """
+#     Sets up a temporary directory structure for domains and releases for testing.
+#
+#     Parameters
+#     ----------
+#     tmp_path : pathlib.Path
+#         A pytest-provided temporary directory path.
+#
+#     Returns
+#     -------
+#     dict
+#         A dictionary containing the paths to the `downloaded_data` directory,
+#         the specific domain directory, and a list of sorted release paths.
+#     """
+#     downloaded_data = tmp_path / "downloaded_data"
+#     downloaded_data.mkdir()
+#
+#     domains = (
+#         "farm_gate_emissions_crops",
+#         "farm_gate_livestock",
+#         "farm_gate_agriculture_energy",
+#         "land_use_forests",
+#         "land_use_fires",
+#         "land_use_drained_organic_soils",
+#         "pre_post_agricultural_production",
+#     )
+#     domain_paths = []
+#
+#     for domain in domains:
+#         domain_path = downloaded_data / domain
+#         domain_path.mkdir()
+#         domain_paths.append(domain_path)
+#
+#     return {
+#         "downloaded_data": downloaded_data,
+#         "domain_paths": domain_paths,
+#     }