def test_handles_file_does_exist(_mock_is_file, file_open_mocker, mock_contents): with file_open_mocker(mock_contents): config = RemoteDockerConfigProfile.from_json_file("file_does_exist") assert config.config_dict == mock_contents
def test_handles_file_does_not_exist(_mock_is_file): config = RemoteDockerConfigProfile.from_json_file("file_does_not_exist") assert config.config_dict == {}