Remove comment.

This commit is contained in:
Robin Huang 2024-09-09 17:27:00 +09:00
parent 2c8a13f4b9
commit b0a75f3f06

View File

@ -49,7 +49,8 @@ def test_load_extra_model_paths_expands_userpath(
monkeypatch.setattr(os.path, 'expanduser', mock_expanduser) monkeypatch.setattr(os.path, 'expanduser', mock_expanduser)
monkeypatch.setattr(yaml, 'safe_load', mock_yaml_safe_load) monkeypatch.setattr(yaml, 'safe_load', mock_yaml_safe_load)
load_extra_path_config('dummy_path.yaml') dummy_yaml_file_name = 'dummy_path.yaml'
load_extra_path_config(dummy_yaml_file_name)
expected_calls = [ expected_calls = [
('model1', os.path.join(mock_expanded_home, 'App', 'subfolder1')), ('model1', os.path.join(mock_expanded_home, 'App', 'subfolder1')),
@ -65,4 +66,4 @@ def test_load_extra_model_paths_expands_userpath(
mock_yaml_safe_load.assert_called_once() mock_yaml_safe_load.assert_called_once()
# Check if open was called with the correct file path # Check if open was called with the correct file path
mock_file.assert_called_once_with('dummy_path.yaml', 'r') mock_file.assert_called_once_with(dummy_yaml_file_name, 'r')