MCPcopy Create free account
hub / github.com/dwavesystems/dwave-cloud-client / test_problem_label

Method test_problem_label

tests/test_solver.py:216–222  ·  view source on GitHub ↗

Problem label is set.

(self)

Source from the content-addressed store, hash-verified

214 self._submit_and_check(solver, linear, quad)
215
216 def test_problem_label(self):
217 """Problem label is set."""
218
219 with Client(**config) as client:
220 solver = client.get_solver()
221 linear, quad = generate_random_ising_problem(solver)
222 self._submit_and_check(solver, linear, quad, label="test")
223
224 @unittest.skipUnless(dimod, "dimod required for 'Solver.sample_bqm'")
225 def test_submit_bqm_ising_problem(self):

Callers

nothing calls this directly

Calls 4

ClientClass · 0.90
_submit_and_checkMethod · 0.80
get_solverMethod · 0.45

Tested by

no test coverage detected