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