diff options
author | Baudouin Raoult <baudouin.raoult@ecmwf.int> | 2020-11-19 12:41:59 +0000 |
---|---|---|
committer | Baudouin Raoult <baudouin.raoult@ecmwf.int> | 2020-11-19 12:41:59 +0000 |
commit | 2d3dd8a617ffbd212b77041aea63f12e4d4cb7c6 (patch) | |
tree | c254452ee13441398a4f68f0f38d9dce82e11aef | |
parent | 0bc12ed774a045ad358bbd9ec0e2ac446f5aac21 (diff) |
More testing
-rw-r--r-- | .github/workflows/check-and-publish.yml | 2 | ||||
-rw-r--r-- | tests/test_api.py | 6 |
2 files changed, 3 insertions, 5 deletions
diff --git a/.github/workflows/check-and-publish.yml b/.github/workflows/check-and-publish.yml index 5c54f54..1b97157 100644 --- a/.github/workflows/check-and-publish.yml +++ b/.github/workflows/check-and-publish.yml @@ -50,8 +50,6 @@ jobs: pip install pytest pytest - - run: ls -l - deploy: if: ${{ github.event_name == 'release' }} diff --git a/tests/test_api.py b/tests/test_api.py index 4629541..c3f3766 100644 --- a/tests/test_api.py +++ b/tests/test_api.py @@ -1,7 +1,5 @@ -from __future__ import absolute_import, division, print_function, unicode_literals - import cdsapi - +import os def test_request(): @@ -18,3 +16,5 @@ def test_request(): ) r.download("test.grib") + + assert os.path.getsize("test.grib") == 2076600 |