def test_when_edx_client_is_none(self, mock_cache_refresh): """Test that the edx data is not refreshed""" api.get_user_program_info(self.user, None) assert mock_cache_refresh.call_count == 0