Skip to content

Commit

Permalink
Skipping timing tests (#58)
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Wathen authored Oct 26, 2021
1 parent b7ac9e6 commit c1b5252
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion github-actions/gotm-fabm-ersem/test_profiling.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import json
import os
import pandas as pd
import pytest
import glob


Expand Down Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
assert calls == calls_expected

0 comments on commit c1b5252

Please sign in to comment.