Ver código fonte

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

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
tianyu.chu 3 dias atrás
pai
commit
4ff8218eb1
1 arquivos alterados com 1 adições e 1 exclusões
  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()