def test_dataset_installed(self): pgd_solver = DUMMY_BENCHMARK / 'datasets' / 'simulated.py' with pytest.raises(SystemExit, match=r'0'): check_install([str(pgd_solver.resolve()), 'Dataset'], 'benchopt')
def test_dataset_does_not_exists(self): pgd_solver = DUMMY_BENCHMARK / 'datasets' / 'invalid.py' with pytest.raises(FileNotFoundError, match=r'invalid.py'): check_install([str(pgd_solver.resolve()), 'Dataset'], 'benchopt')
def test_solver_installed(self): pgd_solver = DUMMY_BENCHMARK / 'solvers' / 'python_pgd.py' with pytest.raises(SystemExit, match=r'0'): check_install([str(pgd_solver.resolve()), 'Solver'], 'benchopt')