From d383425234e3e59c65efc5fd8b08092907edde49 Mon Sep 17 00:00:00 2001 From: Florian Pinault Date: Wed, 10 Jul 2024 14:01:04 +0000 Subject: [PATCH] tests --- .github/workflows/python-publish.yml | 3 ++- tests/test_rest.py | 22 ---------------------- 2 files changed, 2 insertions(+), 23 deletions(-) delete mode 100644 tests/test_rest.py diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index 759adae..e322a28 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -45,7 +45,8 @@ jobs: pip freeze - name: Tests - run: pytest + run: | + cd tests && python3 test_all.py deploy: diff --git a/tests/test_rest.py b/tests/test_rest.py deleted file mode 100644 index 7912358..0000000 --- a/tests/test_rest.py +++ /dev/null @@ -1,22 +0,0 @@ -# (C) Copyright 2024 European Centre for Medium-Range Weather Forecasts. -# This software is licensed under the terms of the Apache Licence Version 2.0 -# which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. -# In applying this licence, ECMWF does not waive the privileges and immunities -# granted to it by virtue of its status as an intergovernmental organisation -# nor does it submit to any jurisdiction. - - -import requests - -from anemoi.registry.rest import Rest - -# patch requests to intercept all requests -requests.request = Rest.request - - -def test_rest(): - pass - - -if __name__ == "__main__": - test_rest()