Skip to content

Commit 48f69d7

Browse files
Add xfail to classes with failing tests
1 parent 68b7912 commit 48f69d7

File tree

63 files changed

+265
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

63 files changed

+265
-0
lines changed

tensorflow_model_analysis/api/model_eval_lib_test.py

+3
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
# limitations under the License.
1414
"""Test for using the model_eval_lib API."""
1515

16+
import pytest
1617
import json
1718
import os
1819
import tempfile
@@ -65,6 +66,8 @@
6566
_TF_MAJOR_VERSION = int(tf.version.VERSION.split('.')[0])
6667

6768

69+
@pytest.mark.xfail(run=False, reason="PR 183 This class contains tests that fail and needs to be fixed. "
70+
"If all tests pass, please remove this mark.")
6871
class EvaluateTest(
6972
test_util.TensorflowModelAnalysisTest, parameterized.TestCase
7073
):

tensorflow_model_analysis/evaluators/analysis_table_evaluator_test.py

+4
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
# limitations under the License.
1414
"""Tests for analysis_table_evaluator."""
1515

16+
17+
import pytest
1618
import apache_beam as beam
1719
from apache_beam.testing import util
1820
import tensorflow as tf
@@ -21,6 +23,8 @@
2123
from tensorflow_model_analysis.utils import test_util
2224

2325

26+
@pytest.mark.xfail(run=False, reason="PR 183 This class contains tests that fail and needs to be fixed. "
27+
"If all tests pass, please remove this mark.")
2428
class AnalysisTableEvaulatorTest(test_util.TensorflowModelAnalysisTest):
2529

2630
def testIncludeFilter(self):

tensorflow_model_analysis/evaluators/confidence_intervals_util_test.py

+4
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
# limitations under the License.
1414
"""Tests for confidence_intervals_util."""
1515

16+
17+
import pytest
1618
from absl.testing import absltest
1719
from absl.testing import parameterized
1820
import apache_beam as beam
@@ -35,6 +37,8 @@ def extract_output(
3537
return self._validate_accumulator(accumulator)
3638

3739

40+
@pytest.mark.xfail(run=False, reason="PR 183 This class contains tests that fail and needs to be fixed. "
41+
"If all tests pass, please remove this mark.")
3842
class ConfidenceIntervalsUtilTest(parameterized.TestCase):
3943

4044
@parameterized.named_parameters(

tensorflow_model_analysis/evaluators/jackknife_test.py

+4
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
# limitations under the License.
1414
"""Tests for evaluators.jackknife."""
1515

16+
17+
import pytest
1618
import functools
1719

1820
from absl.testing import absltest
@@ -66,6 +68,8 @@ def add_input(self, accumulator, element):
6668
)
6769

6870

71+
@pytest.mark.xfail(run=False, reason="PR 183 This class contains tests that fail and needs to be fixed. "
72+
"If all tests pass, please remove this mark.")
6973
class JackknifeTest(absltest.TestCase):
7074

7175
def test_accumulate_only_combiner(self):

tensorflow_model_analysis/evaluators/metrics_plots_and_validations_evaluator_test.py

+4
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
# limitations under the License.
1414
"""Test for MetricsPlotsAndValidationsEvaluator with different metrics."""
1515

16+
17+
import pytest
1618
import os
1719

1820
from absl.testing import parameterized
@@ -50,6 +52,8 @@
5052
_TF_MAJOR_VERSION = int(tf.version.VERSION.split('.')[0])
5153

5254

55+
@pytest.mark.xfail(run=False, reason="PR 183 This class contains tests that fail and needs to be fixed. "
56+
"If all tests pass, please remove this mark.")
5357
class MetricsPlotsAndValidationsEvaluatorTest(
5458
testutil.TensorflowModelAnalysisTest, parameterized.TestCase
5559
):

tensorflow_model_analysis/evaluators/poisson_bootstrap_test.py

+4
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
# limitations under the License.
1414
"""Test for using the poisson bootstrap API."""
1515

16+
17+
import pytest
1618
from absl.testing import absltest
1719
import apache_beam as beam
1820
from apache_beam.testing import util
@@ -24,6 +26,8 @@
2426
from tensorflow_model_analysis.metrics import metric_types
2527

2628

29+
@pytest.mark.xfail(run=False, reason="PR 183 This class contains tests that fail and needs to be fixed. "
30+
"If all tests pass, please remove this mark.")
2731
class PoissonBootstrapTest(absltest.TestCase):
2832

2933
def test_bootstrap_combine_fn(self):

tensorflow_model_analysis/extractors/counterfactual_predictions_extractor_test.py

+4
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
# limitations under the License.
1414
"""Tests for counterfactual_predictions_extactor."""
1515

16+
17+
import pytest
1618
import os
1719
import tempfile
1820

@@ -51,6 +53,8 @@ def call(self, serialized_example):
5153
return parsed[self._feature_key]
5254

5355

56+
@pytest.mark.xfail(run=False, reason="PR 183 This class contains tests that fail and needs to be fixed. "
57+
"If all tests pass, please remove this mark.")
5458
class CounterfactualPredictionsExtactorTest(
5559
test_util.TensorflowModelAnalysisTest, parameterized.TestCase
5660
):

tensorflow_model_analysis/extractors/example_weights_extractor_test.py

+4
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
# limitations under the License.
1414
"""Test for example weights extractor."""
1515

16+
17+
import pytest
1618
from absl.testing import parameterized
1719
import apache_beam as beam
1820
from apache_beam.testing import util
@@ -30,6 +32,8 @@
3032
from tensorflow_metadata.proto.v0 import schema_pb2
3133

3234

35+
@pytest.mark.xfail(run=False, reason="PR 183 This class contains tests that fail and needs to be fixed. "
36+
"If all tests pass, please remove this mark.")
3337
class ExampleWeightsExtractorTest(
3438
test_util.TensorflowModelAnalysisTest, parameterized.TestCase
3539
):

tensorflow_model_analysis/extractors/extractor_test.py

+4
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,17 @@
1313
# limitations under the License.
1414
"""Test for extractor."""
1515

16+
17+
import pytest
1618
import apache_beam as beam
1719
from apache_beam.testing import util
1820
import tensorflow as tf
1921
from tensorflow_model_analysis.extractors import extractor
2022
from tensorflow_model_analysis.utils import test_util
2123

2224

25+
@pytest.mark.xfail(run=False, reason="PR 183 This class contains tests that fail and needs to be fixed. "
26+
"If all tests pass, please remove this mark.")
2327
class ExtractorTest(test_util.TensorflowModelAnalysisTest):
2428

2529
def testFilterRaisesValueError(self):

tensorflow_model_analysis/extractors/features_extractor_test.py

+4
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
# limitations under the License.
1414
"""Test for features extractor."""
1515

16+
17+
import pytest
1618
from absl.testing import parameterized
1719
import apache_beam as beam
1820
from apache_beam.testing import util
@@ -29,6 +31,8 @@
2931
from tensorflow_metadata.proto.v0 import schema_pb2
3032

3133

34+
@pytest.mark.xfail(run=False, reason="PR 183 This class contains tests that fail and needs to be fixed. "
35+
"If all tests pass, please remove this mark.")
3236
class FeaturesExtractorTest(
3337
test_util.TensorflowModelAnalysisTest, parameterized.TestCase
3438
):

tensorflow_model_analysis/extractors/inference_base_test.py

+4
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
tfx_bsl_predictions_extractor_test.py.
1818
"""
1919

20+
21+
import pytest
2022
import os
2123

2224
import tensorflow as tf
@@ -35,6 +37,8 @@
3537
from tensorflow_serving.apis import prediction_log_pb2
3638

3739

40+
@pytest.mark.xfail(run=False, reason="PR 183 This class contains tests that fail and needs to be fixed. "
41+
"If all tests pass, please remove this mark.")
3842
class TfxBslPredictionsExtractorTest(testutil.TensorflowModelAnalysisTest):
3943

4044
def setUp(self):

tensorflow_model_analysis/extractors/labels_extractor_test.py

+4
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
# limitations under the License.
1414
"""Test for labels extractor."""
1515

16+
17+
import pytest
1618
from absl.testing import parameterized
1719
import apache_beam as beam
1820
from apache_beam.testing import util
@@ -30,6 +32,8 @@
3032
from tensorflow_metadata.proto.v0 import schema_pb2
3133

3234

35+
@pytest.mark.xfail(run=False, reason="PR 183 This class contains tests that fail and needs to be fixed. "
36+
"If all tests pass, please remove this mark.")
3337
class LabelsExtractorTest(
3438
test_util.TensorflowModelAnalysisTest, parameterized.TestCase
3539
):

tensorflow_model_analysis/extractors/legacy_input_extractor_test.py

+4
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
# limitations under the License.
1414
"""Tests for input extractor."""
1515

16+
17+
import pytest
1618
import apache_beam as beam
1719
from apache_beam.testing import util
1820
import numpy as np
@@ -24,6 +26,8 @@
2426
from tensorflow_model_analysis.utils import test_util
2527

2628

29+
@pytest.mark.xfail(run=False, reason="PR 183 This class contains tests that fail and needs to be fixed. "
30+
"If all tests pass, please remove this mark.")
2731
class InputExtractorTest(test_util.TensorflowModelAnalysisTest):
2832

2933
def testInputExtractor(self):

tensorflow_model_analysis/extractors/legacy_meta_feature_extractor_test.py

+4
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
# limitations under the License.
1414
"""Test for using the MetaFeatureExtractor as part of TFMA."""
1515

16+
17+
import pytest
1618
import apache_beam as beam
1719
from apache_beam.testing import util
1820
import numpy as np
@@ -70,6 +72,8 @@ def get_num_interests(fpl):
7072
return new_features
7173

7274

75+
@pytest.mark.xfail(run=False, reason="PR 183 This class contains tests that fail and needs to be fixed. "
76+
"If all tests pass, please remove this mark.")
7377
class MetaFeatureExtractorTest(test_util.TensorflowModelAnalysisTest):
7478

7579
def testMetaFeatures(self):

tensorflow_model_analysis/extractors/materialized_predictions_extractor_test.py

+4
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
# limitations under the License.
1414
"""Test for batched materialized predictions extractor."""
1515

16+
17+
import pytest
1618
import apache_beam as beam
1719
from apache_beam.testing import util
1820
import numpy as np
@@ -30,6 +32,8 @@
3032
from tensorflow_metadata.proto.v0 import schema_pb2
3133

3234

35+
@pytest.mark.xfail(run=False, reason="PR 183 This class contains tests that fail and needs to be fixed. "
36+
"If all tests pass, please remove this mark.")
3337
class MaterializedPredictionsExtractorTest(
3438
testutil.TensorflowModelAnalysisTest
3539
):

tensorflow_model_analysis/extractors/predictions_extractor_test.py

+4
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
# limitations under the License.
1414
"""Test for batched predict extractor."""
1515

16+
17+
import pytest
1618
import os
1719

1820
from absl.testing import parameterized
@@ -34,6 +36,8 @@
3436
from tensorflow_metadata.proto.v0 import schema_pb2
3537

3638

39+
@pytest.mark.xfail(run=False, reason="PR 183 This class contains tests that fail and needs to be fixed. "
40+
"If all tests pass, please remove this mark.")
3741
class PredictionsExtractorTest(
3842
test_util.TensorflowModelAnalysisTest, parameterized.TestCase
3943
):

tensorflow_model_analysis/extractors/slice_key_extractor_test.py

+4
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
# limitations under the License.
1414
"""Test for slice_key_extractor."""
1515

16+
17+
import pytest
1618
from absl.testing import parameterized
1719
import apache_beam as beam
1820
from apache_beam.testing import util
@@ -64,6 +66,8 @@ def wrap_fpl(fpl):
6466
}
6567

6668

69+
@pytest.mark.xfail(run=False, reason="PR 183 This class contains tests that fail and needs to be fixed. "
70+
"If all tests pass, please remove this mark.")
6771
class SliceTest(test_util.TensorflowModelAnalysisTest, parameterized.TestCase):
6872

6973
@parameterized.named_parameters(

tensorflow_model_analysis/extractors/sql_slice_key_extractor_test.py

+4
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
# limitations under the License.
1414
"""Tests for tensorflow_model_analysis.google.extractors.sql_slice_key_extractor."""
1515

16+
17+
import pytest
1618
import apache_beam as beam
1719
from apache_beam.testing import util
1820
import numpy as np
@@ -50,6 +52,8 @@
5052
)
5153

5254

55+
@pytest.mark.xfail(run=False, reason="PR 183 This class contains tests that fail and needs to be fixed. "
56+
"If all tests pass, please remove this mark.")
5357
class SqlSliceKeyExtractorTest(test_util.TensorflowModelAnalysisTest):
5458

5559
def testSqlSliceKeyExtractor(self):

tensorflow_model_analysis/extractors/tfjs_predict_extractor_test.py

+4
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
# limitations under the License.
1414
"""Tests for tfjs predict extractor."""
1515

16+
17+
import pytest
1618
import tempfile
1719

1820
from absl.testing import parameterized
@@ -39,6 +41,8 @@
3941
_TFJS_IMPORTED = False
4042

4143

44+
@pytest.mark.xfail(run=False, reason="PR 183 This class contains tests that fail and needs to be fixed. "
45+
"If all tests pass, please remove this mark.")
4246
class TFJSPredictExtractorTest(
4347
testutil.TensorflowModelAnalysisTest, parameterized.TestCase
4448
):

tensorflow_model_analysis/extractors/transformed_features_extractor_test.py

+4
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
# limitations under the License.
1414
"""Test for transformed features extractor."""
1515

16+
17+
import pytest
1618
import tempfile
1719
import unittest
1820

@@ -36,6 +38,8 @@
3638
_TF_MAJOR_VERSION = int(tf.version.VERSION.split('.')[0])
3739

3840

41+
@pytest.mark.xfail(run=False, reason="PR 183 This class contains tests that fail and needs to be fixed. "
42+
"If all tests pass, please remove this mark.")
3943
class TransformedFeaturesExtractorTest(
4044
testutil.TensorflowModelAnalysisTest, parameterized.TestCase
4145
):

tensorflow_model_analysis/extractors/unbatch_extractor_test.py

+4
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
# limitations under the License.
1414
"""Test for unbatch extractor."""
1515

16+
17+
import pytest
1618
import apache_beam as beam
1719
from apache_beam.testing import util
1820
import numpy as np
@@ -32,6 +34,8 @@
3234
from tensorflow_metadata.proto.v0 import schema_pb2
3335

3436

37+
@pytest.mark.xfail(run=False, reason="PR 183 This class contains tests that fail and needs to be fixed. "
38+
"If all tests pass, please remove this mark.")
3539
class UnbatchExtractorTest(testutil.TensorflowModelAnalysisTest):
3640

3741
def testExtractUnbatchedInputsRaisesChainedException(self):

tensorflow_model_analysis/metrics/aggregation_test.py

+4
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
# limitations under the License.
1414
"""Tests for aggregation metrics."""
1515

16+
17+
import pytest
1618
import copy
1719
import apache_beam as beam
1820
from apache_beam.testing import util
@@ -25,6 +27,8 @@
2527
from tensorflow_model_analysis.utils import test_util
2628

2729

30+
@pytest.mark.xfail(run=False, reason="PR 183 This class contains tests that fail and needs to be fixed. "
31+
"If all tests pass, please remove this mark.")
2832
class AggregationMetricsTest(test_util.TensorflowModelAnalysisTest):
2933

3034
def testOutputAverage(self):

0 commit comments

Comments
 (0)