Skip to content

Commit ffbb959

Browse files
Add xfail mark to classes with failing tests
1 parent f63a78f commit ffbb959

7 files changed

+28
-0
lines changed

tensorflow_transform/beam/bucketize_integration_test.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
# limitations under the License.
1414
"""Tests for tft.bucketize and tft.quantiles."""
1515

16+
17+
import pytest
1618
import contextlib
1719
import random
1820

@@ -339,6 +341,8 @@ def _compute_simple_per_key_bucket(val, key, weighted=False):
339341
]
340342

341343

344+
@pytest.mark.xfail(reason="PR 315 This class contains tests that fail and needs to be fixed. "
345+
"If all tests pass, please remove this mark.")
342346
class BucketizeIntegrationTest(tft_unit.TransformTestCase):
343347

344348
def setUp(self):

tensorflow_transform/beam/impl_output_record_batches_test.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
# limitations under the License.
1414
"""Same as impl_test.py, except that impl produces `pa.RecordBatch`es."""
1515

16+
17+
import pytest
1618
import collections
1719

1820
import numpy as np
@@ -28,6 +30,8 @@
2830
_LARGE_BATCH_SIZE = 1 << 10
2931

3032

33+
@pytest.mark.xfail(reason="PR 315 This class contains tests that fail and needs to be fixed. "
34+
"If all tests pass, please remove this mark.")
3135
class BeamImplOutputRecordBatchesTest(impl_test.BeamImplTest):
3236

3337
def _OutputRecordBatches(self):

tensorflow_transform/beam/impl_test.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
# See the License for the specific language governing permissions and
1515
# limitations under the License.
1616

17+
18+
import pytest
1719
import itertools
1820
import math
1921
import os
@@ -110,6 +112,8 @@ def _mean_output_dtype(input_dtype):
110112
return tf.float64 if input_dtype == tf.float64 else tf.float32
111113

112114

115+
@pytest.mark.xfail(reason="PR 315 This class contains tests that fail and needs to be fixed. "
116+
"If all tests pass, please remove this mark.")
113117
class BeamImplTest(tft_unit.TransformTestCase):
114118

115119
def setUp(self):

tensorflow_transform/beam/tukey_hh_params_integration_test.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
# limitations under the License.
1414
"""Tests for tft.tukey_* calls (Tukey HH parameters)."""
1515

16+
17+
import pytest
1618
import itertools
1719

1820
import apache_beam as beam
@@ -92,6 +94,8 @@
9294
]
9395

9496

97+
@pytest.mark.xfail(reason="PR 315 This class contains tests that fail and needs to be fixed. "
98+
"If all tests pass, please remove this mark.")
9599
class TukeyHHParamsIntegrationTest(tft_unit.TransformTestCase):
96100

97101
def setUp(self):

tensorflow_transform/beam/vocabulary_integration_test.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
# limitations under the License.
1616
"""Tests for tft.vocabulary and tft.compute_and_apply_vocabulary."""
1717

18+
19+
import pytest
1820
import os
1921

2022
import apache_beam as beam
@@ -114,6 +116,8 @@
114116
]
115117

116118

119+
@pytest.mark.xfail(reason="PR 315 This class contains tests that fail and needs to be fixed. "
120+
"If all tests pass, please remove this mark.")
117121
class VocabularyIntegrationTest(tft_unit.TransformTestCase):
118122

119123
def setUp(self):

tensorflow_transform/beam/vocabulary_tfrecord_gzip_integration_test.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,14 @@
1414
# limitations under the License.
1515
"""Tests for tfrecord_gzip tft.vocabulary and tft.compute_and_apply_vocabulary."""
1616

17+
18+
import pytest
1719
from tensorflow_transform.beam import vocabulary_integration_test
1820
from tensorflow_transform.beam import tft_unit
1921

2022

23+
@pytest.mark.xfail(reason="PR 315 This class contains tests that fail and needs to be fixed. "
24+
"If all tests pass, please remove this mark.")
2125
class TFRecordVocabularyIntegrationTest(
2226
vocabulary_integration_test.VocabularyIntegrationTest):
2327

tensorflow_transform/tf_utils_test.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
# limitations under the License.
1414
"""Tests for tensorflow_transform.tf_utils."""
1515

16+
17+
import pytest
1618
import os
1719

1820
import numpy as np
@@ -65,6 +67,8 @@ def __init__(self, shape, dtype):
6567
tf.SparseTensorSpec = _SparseTensorSpec
6668

6769

70+
@pytest.mark.xfail(reason="PR 315 This class contains tests that fail and needs to be fixed. "
71+
"If all tests pass, please remove this mark.")
6872
class TFUtilsTest(test_case.TransformTestCase):
6973

7074
def _assertCompositeRefEqual(self, left, right):

0 commit comments

Comments
 (0)