Skip to content

Commit a1603ca

Browse files
Add missing v2_behavior fixtures
1 parent c9d3b2a commit a1603ca

14 files changed

+16
-3
lines changed

tensorflow_model_analysis/api/model_eval_lib_test.py

Lines changed: 1 addition & 0 deletions
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
):

tensorflow_model_analysis/evaluators/metrics_validator_test.py

Lines changed: 1 addition & 1 deletion
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
):

tensorflow_model_analysis/extractors/counterfactual_predictions_extractor_test.py

Lines changed: 1 addition & 0 deletions
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
):

tensorflow_model_analysis/extractors/materialized_predictions_extractor_test.py

Lines changed: 1 addition & 0 deletions
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
):

tensorflow_model_analysis/extractors/predictions_extractor_test.py

Lines changed: 1 addition & 0 deletions
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
):

tensorflow_model_analysis/extractors/tfjs_predict_extractor_test.py

Lines changed: 1 addition & 0 deletions
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
):

tensorflow_model_analysis/extractors/tflite_predict_extractor_test.py

Lines changed: 1 addition & 0 deletions
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
):

tensorflow_model_analysis/extractors/transformed_features_extractor_test.py

Lines changed: 1 addition & 0 deletions
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
):

tensorflow_model_analysis/metrics/confusion_matrix_metrics_test.py

Lines changed: 1 addition & 0 deletions
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,

tensorflow_model_analysis/metrics/tf_metric_accumulators_test.py

Lines changed: 1 addition & 1 deletion
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):

0 commit comments

Comments
 (0)