summaryrefslogtreecommitdiff
path: root/tests/test_api.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_api.py')
-rw-r--r--tests/test_api.py20
1 files changed, 0 insertions, 20 deletions
diff --git a/tests/test_api.py b/tests/test_api.py
deleted file mode 100644
index c3f3766..0000000
--- a/tests/test_api.py
+++ /dev/null
@@ -1,20 +0,0 @@
-import cdsapi
-import os
-
-def test_request():
-
- c = cdsapi.Client()
-
- r = c.retrieve(
- "reanalysis-era5-single-levels",
- {
- "variable": "2t",
- "product_type": "reanalysis",
- "date": "2012-12-01",
- "time": "12:00"
- },
- )
-
- r.download("test.grib")
-
- assert os.path.getsize("test.grib") == 2076600