summaryrefslogtreecommitdiff
path: root/tests/test_api.py
diff options
context:
space:
mode:
authorGard Spreemann <gspr@nonempty.org>2023-06-08 11:42:59 +0200
committerGard Spreemann <gspr@nonempty.org>2023-06-08 11:42:59 +0200
commit6e5bc3fd8bbce12239f4dde8ac8b3f8a83ac1b6c (patch)
tree9b86d6b730e803f73da18fd540283763ab7219c1 /tests/test_api.py
parent9c4d0ead790ef9b59311eb172e93140c2a143b16 (diff)
parent9b882a8f14495652c6fcc5d0eb0bd3de60e4bea8 (diff)
Merge tag '0.6.1' into gspr/post-bookworm
Diffstat (limited to 'tests/test_api.py')
-rw-r--r--tests/test_api.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/test_api.py b/tests/test_api.py
index c3f3766..3725f1f 100644
--- a/tests/test_api.py
+++ b/tests/test_api.py
@@ -1,8 +1,9 @@
-import cdsapi
import os
-def test_request():
+import cdsapi
+
+def test_request():
c = cdsapi.Client()
r = c.retrieve(
@@ -11,7 +12,7 @@ def test_request():
"variable": "2t",
"product_type": "reanalysis",
"date": "2012-12-01",
- "time": "12:00"
+ "time": "12:00",
},
)