Skip to content

Commit ba8407a

Browse files
committed
fix: update test to account for changes
1 parent 9b8bf0b commit ba8407a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/unit/sagemaker/modules/train/test_model_trainer.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -503,19 +503,19 @@ def test_train_with_distributed_config(
503503
assert os.path.exists(expected_runner_json_path)
504504
with open(expected_runner_json_path, "r") as f:
505505
runner_json_content = f.read()
506-
assert test_case["distributed"].model_dump(exclude_none=True) == (
506+
assert test_case["distributed"].model_dump() == (
507507
json.loads(runner_json_content)
508508
)
509509
assert os.path.exists(expected_source_code_json_path)
510510
with open(expected_source_code_json_path, "r") as f:
511511
source_code_json_content = f.read()
512-
assert test_case["source_code"].model_dump(exclude_none=True) == (
512+
assert test_case["source_code"].model_dump() == (
513513
json.loads(source_code_json_content)
514514
)
515515
assert os.path.exists(expected_source_code_json_path)
516516
with open(expected_source_code_json_path, "r") as f:
517517
source_code_json_content = f.read()
518-
assert test_case["source_code"].model_dump(exclude_none=True) == (
518+
assert test_case["source_code"].model_dump() == (
519519
json.loads(source_code_json_content)
520520
)
521521
finally:

0 commit comments

Comments
 (0)