def test_simple_update(self): r_jobs = [ _Job([self.numpy_1_7_0], "update", R("numpy")), ] request = Request(self.pool) request.update(R("numpy")) self.assertEqual(request.jobs, r_jobs)
def test_simple_update(self): r_jobs = [ _Job([self.numpy_1_7_0], "update", R("numpy")), ] request = Request(self.pool) request.update(R("numpy")) self.assertEqual(request.jobs, r_jobs)
def test_simple_update(self): installed_packages = [P("mkl-10.2.0")] remote_packages = [P("mkl-11.0.0")] solver = self._create_solver(installed_packages, remote_packages) request = Request(solver.pool) request.update(R("mkl")) solver._compute_package_maps(request) self.assertEqual(solver._id_to_installed_package, {1: P("mkl-10.2.0")}) self.assertEqual(solver._id_to_updated_state, {1: True})
def test_simple_update(self): installed_packages = [P("mkl-10.2.0")] remote_packages = [P("mkl-11.0.0")] solver = self._create_solver(installed_packages, remote_packages) request = Request(solver.pool) request.update(R("mkl")) solver._compute_package_maps(request) self.assertEqual(solver._id_to_installed_package, {1: P("mkl-10.2.0")}) self.assertEqual(solver._id_to_updated_state, {1: True})