From c1b5252e723032f5e22354766e12cab340b04eb1 Mon Sep 17 00:00:00 2001 From: Michael Wathen Date: Tue, 26 Oct 2021 10:12:19 +0100 Subject: [PATCH] Skipping timing tests (#58) --- github-actions/gotm-fabm-ersem/test_profiling.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/github-actions/gotm-fabm-ersem/test_profiling.py b/github-actions/gotm-fabm-ersem/test_profiling.py index cd738ea..6d09281 100644 --- a/github-actions/gotm-fabm-ersem/test_profiling.py +++ b/github-actions/gotm-fabm-ersem/test_profiling.py @@ -7,6 +7,7 @@ import json import os import pandas as pd +import pytest import glob @@ -71,6 +72,7 @@ def setUp(self): self.df, self.ersem, self.gotm, self.fabm, self.netcdf, = \ average_df(profile_path) + @pytest.mark.skip() def test_ersem_time_percentage(self): """ Checks total ERSEM call times are the same @@ -79,6 +81,7 @@ def test_ersem_time_percentage(self): ersem_perc_expected = self.ersem_expected["% time"].sum() assert abs(ersem_perc - ersem_perc_expected) <= 1.0 + @pytest.mark.skip() def test_fabm_time_percentage(self): """ Checks total FABM call times are the same @@ -87,6 +90,7 @@ def test_fabm_time_percentage(self): fabm_perc_expected = self.fabm_expected["% time"].sum() assert abs(fabm_perc - fabm_perc_expected) <= 1.0 + @pytest.mark.skip() def test_gotm_time_percentage(self): """ Checks total GOTM call times are the same @@ -95,6 +99,7 @@ def test_gotm_time_percentage(self): gotm_perc_expected = self.gotm_expected["% time"].sum() assert abs(gotm_perc - gotm_perc_expected) <= 1.0 + @pytest.mark.skip() def test_netcdf_time_percentage(self): """ Checks total netCDF call times are the same @@ -103,6 +108,7 @@ def test_netcdf_time_percentage(self): netcdf_perc_expected = self.netcdf_expected["% time"].sum() assert abs(netcdf_perc - netcdf_perc_expected) <= 1.0 + @pytest.mark.skip() def test_total_time(self): """ Checks to see that the total time does not change by more than @@ -198,4 +204,4 @@ def test_netcdf_func_calls(self): calls_expected = \ {n: c for n, c in zip( self.netcdf["name"], self.netcdf['self calls'])} - assert calls == calls_expected \ No newline at end of file + assert calls == calls_expected