Skip to content

Commit a1603ca

Browse files
Add missing v2_behavior fixtures
1 parent c9d3b2a commit a1603ca

14 files changed

+16
-3
lines changed

Diff for: tensorflow_model_analysis/api/model_eval_lib_test.py

+1
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@
7070

7171
@pytest.mark.xfail(run=False, reason="PR 183 This class contains tests that fail and needs to be fixed. "
7272
"If all tests pass, please remove this mark.")
73+
@pytest.mark.usefixtures("v2_behavior")
7374
class EvaluateTest(
7475
test_util.TensorflowModelAnalysisTest, parameterized.TestCase
7576
):

Diff for: tensorflow_model_analysis/evaluators/metrics_validator_test.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@
135135
((('feature1', 'value1'),), (('feature3', 'value3'),)),
136136
)
137137

138-
138+
@pytest.mark.usefixtures("v2_behavior")
139139
class MetricsValidatorTest(
140140
test_util.TensorflowModelAnalysisTest, parameterized.TestCase
141141
):

Diff for: tensorflow_model_analysis/extractors/counterfactual_predictions_extractor_test.py

+1
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ def call(self, serialized_example):
5555

5656
@pytest.mark.xfail(run=False, reason="PR 183 This class contains tests that fail and needs to be fixed. "
5757
"If all tests pass, please remove this mark.")
58+
@pytest.mark.usefixtures("v2_behavior")
5859
class CounterfactualPredictionsExtactorTest(
5960
test_util.TensorflowModelAnalysisTest, parameterized.TestCase
6061
):

Diff for: tensorflow_model_analysis/extractors/materialized_predictions_extractor_test.py

+1
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535

3636
@pytest.mark.xfail(run=False, reason="PR 183 This class contains tests that fail and needs to be fixed. "
3737
"If all tests pass, please remove this mark.")
38+
@pytest.mark.usefixtures("v2_behavior")
3839
class MaterializedPredictionsExtractorTest(
3940
testutil.TensorflowModelAnalysisTest
4041
):

Diff for: tensorflow_model_analysis/extractors/predictions_extractor_test.py

+1
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939

4040
@pytest.mark.xfail(run=False, reason="PR 183 This class contains tests that fail and needs to be fixed. "
4141
"If all tests pass, please remove this mark.")
42+
@pytest.mark.usefixtures("v2_behavior")
4243
class PredictionsExtractorTest(
4344
test_util.TensorflowModelAnalysisTest, parameterized.TestCase
4445
):

Diff for: tensorflow_model_analysis/extractors/tfjs_predict_extractor_test.py

+1
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444

4545
@pytest.mark.xfail(run=False, reason="PR 183 This class contains tests that fail and needs to be fixed. "
4646
"If all tests pass, please remove this mark.")
47+
@pytest.mark.usefixtures("v2_behavior")
4748
class TFJSPredictExtractorTest(
4849
testutil.TensorflowModelAnalysisTest, parameterized.TestCase
4950
):

Diff for: tensorflow_model_analysis/extractors/tflite_predict_extractor_test.py

+1
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ def random_genenerator():
5454
yield r
5555

5656

57+
@pytest.mark.usefixtures("v2_behavior")
5758
class TFLitePredictExtractorTest(
5859
testutil.TensorflowModelAnalysisTest, parameterized.TestCase
5960
):

Diff for: tensorflow_model_analysis/extractors/transformed_features_extractor_test.py

+1
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040

4141
@pytest.mark.xfail(run=False, reason="PR 183 This class contains tests that fail and needs to be fixed. "
4242
"If all tests pass, please remove this mark.")
43+
@pytest.mark.usefixtures("v2_behavior")
4344
class TransformedFeaturesExtractorTest(
4445
testutil.TensorflowModelAnalysisTest, parameterized.TestCase
4546
):

Diff for: tensorflow_model_analysis/metrics/confusion_matrix_metrics_test.py

+1
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838

3939
@pytest.mark.xfail(run=False, reason="PR 183 This class contains tests that fail and needs to be fixed. "
4040
"If all tests pass, please remove this mark.")
41+
@pytest.mark.usefixtures("v2_behavior")
4142
class ConfusionMatrixMetricsTest(
4243
test_util.TensorflowModelAnalysisTest,
4344
metric_test_util.TestCase,

Diff for: tensorflow_model_analysis/metrics/tf_metric_accumulators_test.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
from tensorflow_model_analysis.utils import test_util
2121

2222

23-
23+
@pytest.mark.usefixtures("v2_behavior")
2424
class TfMetricAccumulatorsTest(test_util.TensorflowModelAnalysisTest):
2525

2626
def testTFMetricsAccumulator(self):

Diff for: tensorflow_model_analysis/metrics/tf_metric_wrapper_test.py

+3
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ def result(self):
7272

7373
@pytest.mark.xfail(run=False, reason="PR 183 This class contains tests that fail and needs to be fixed. "
7474
"If all tests pass, please remove this mark.")
75+
@pytest.mark.usefixtures("v2_behavior")
7576
class ConfusionMatrixMetricsTest(
7677
test_util.TensorflowModelAnalysisTest, parameterized.TestCase
7778
):
@@ -495,6 +496,7 @@ def check_result(got):
495496

496497
@pytest.mark.xfail(run=False, reason="PR 183 This class contains tests that fail and needs to be fixed. "
497498
"If all tests pass, please remove this mark.")
499+
@pytest.mark.usefixtures("v2_behavior")
498500
class NonConfusionMatrixMetricsTest(
499501
test_util.TensorflowModelAnalysisTest, parameterized.TestCase
500502
):
@@ -1047,6 +1049,7 @@ def testMergeAccumulators(self):
10471049

10481050
@pytest.mark.xfail(run=False, reason="PR 183 This class contains tests that fail and needs to be fixed. "
10491051
"If all tests pass, please remove this mark.")
1052+
@pytest.mark.usefixtures("v2_behavior")
10501053
class MixedMetricsTest(test_util.TensorflowModelAnalysisTest):
10511054

10521055
def testWithMixedMetrics(self):

Diff for: tensorflow_model_analysis/utils/model_util_test.py

+1
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ def _record_batch_to_extracts(record_batch):
5050

5151
@pytest.mark.xfail(run=False, reason="PR 183 This class contains tests that fail and needs to be fixed. "
5252
"If all tests pass, please remove this mark.")
53+
@pytest.mark.usefixtures("v2_behavior")
5354
class ModelUtilTest(
5455
test_util.TensorflowModelAnalysisTest, parameterized.TestCase
5556
):

Diff for: tensorflow_model_analysis/utils/util_test.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
from tensorflow_metadata.proto.v0 import schema_pb2
2727

2828

29-
29+
@pytest.mark.usefixtures("v2_behavior")
3030
class UtilTest(tf.test.TestCase, parameterized.TestCase):
3131

3232
def testToTensorValueFromTFSparseTensor(self):

Diff for: tensorflow_model_analysis/writers/metrics_plots_and_validations_writer_test.py

+1
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ def _make_slice_key(*args):
6464

6565
@pytest.mark.xfail(run=False, reason="PR 183 This class contains tests that fail and needs to be fixed. "
6666
"If all tests pass, please remove this mark.")
67+
@pytest.mark.usefixtures("v2_behavior")
6768
class MetricsPlotsAndValidationsWriterTest(testutil.TensorflowModelAnalysisTest,
6869
parameterized.TestCase):
6970

0 commit comments

Comments
 (0)