소스 검색

test(datax/cli): 适配 json_path 加日期后缀的新格式

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
tianyu.chu 3 일 전
부모
커밋
4ff8218eb1
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      tests/unit/datax/test_cli.py

+ 1 - 1
tests/unit/datax/test_cli.py

@@ -19,7 +19,7 @@ def test_gen_json_invokes_generator(MockGen):
     assert call_args[1] == 'some.ini'
     assert call_args[2] == '20260422'
     assert call_args[3] == '20260423'
-    assert call_args[4].endswith('some.json')
+    assert call_args[4].endswith('some_20260422_20260423.json')
     mock_inst.run.assert_called_once()