Skip to content

Commit

Permalink
* test for raft
Browse files Browse the repository at this point in the history
  • Loading branch information
HYLcool committed Dec 30, 2024
1 parent 8981b63 commit 2025a2e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
3 changes: 2 additions & 1 deletion tests/ops/filter/test_video_motion_score_raft_filter.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

# skip due to conflicts when run lazy_load in multiprocessing in librosa
# tests passed locally.
@SKIPPED_TESTS.register_module()
# @SKIPPED_TESTS.register_module()
class VideoMotionScoreRaftFilterTest(DataJuicerTestCaseBase):

data_path = os.path.join(os.path.dirname(os.path.realpath(__file__)), '..',
Expand All @@ -26,6 +26,7 @@ def _run_helper(self, op, source_list, target_list, np=1):
column=[{}] * dataset.num_rows)
dataset = dataset.map(op.compute_stats, num_proc=np)
dataset = dataset.filter(op.process, num_proc=np)
print(dataset[Fields.stats])
dataset = dataset.select_columns(column_names=[op.video_key])
res_list = dataset.to_list()
self.assertEqual(res_list, target_list)
Expand Down
5 changes: 1 addition & 4 deletions tests/ops/mapper/test_nlpcda_zh_mapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,10 @@

# Skip tests for this OP in the GitHub actions due to unknown UnicodeEncodeError
# These tests have been tested locally.
# @SKIPPED_TESTS.register_module()
@SKIPPED_TESTS.register_module()
class NlpaugEnMapperTest(DataJuicerTestCaseBase):

def setUp(self):
import sys
# set the default encoding to utf-8 explicitly
sys.stdout.reconfigure(encoding='utf-8')
self.samples = Dataset.from_dict({
'text': ['这里一共有5种不同的数据增强方法', '这是不带数字的测试样例'],
'meta': ['meta information', 'meta information without numbers'],
Expand Down

0 comments on commit 2025a2e

Please sign in to comment.