source: flex_extract.git/Testing/Installation/testecmwfapi_public.py @ be6c0a2

ctbtodev
Last change on this file since be6c0a2 was be6c0a2, checked in by Anne Philipp <anne.philipp@…>, 4 years ago

added Readme to tests; changed directory structure; added recent test results;

  • Property mode set to 100644
File size: 674 bytes
Line 
1#!/usr/bin/env python3
2# -*- coding: utf-8 -*-
3
4
5import pytest
6from ecmwfapi import ECMWFDataServer
7
8class TestECMWFApi:
9    """
10    """
11
12    def test_public():
13        server = ECMWFDataServer()
14
15        server.retrieve({'dataset' : "interim",
16                         'time'    : "00",
17                         'date'    : "2013-09-01/to/2013-09-30",
18                         'step'    : "0",
19                         'type'    : "an",
20                         'levtype' : "sfc",
21                         'param'   : "165.128/41.128",
22                         'grid'    : "0.75/0.75",
23                         'target'  : "interim201309.grib"
24                        })
25
26
Note: See TracBrowser for help on using the repository browser.
hosted by ZAMG