Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
Signed-off-by: Paul S. Schweigert <[email protected]>
  • Loading branch information
psschwei committed Sep 24, 2024
1 parent d3ae22a commit cd9c4a9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions client/tests/serializers/test_program_serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ def test_argument_parsing(self):
circuit = random_circuit(4, 2)
array = np.array([[42.0], [0.0]])

os.environ[ENV_JOB_ARGUMENTS] = json.dumps(
{"circuit": circuit, "array": array}, cls=QiskitObjectsEncoder
)
with open("arguments.serverless", "w", encoding="utf-8") as f:
json.dump({"circuit": circuit, "array": array}, f, cls=QiskitObjectsEncoder)

parsed_arguments = get_arguments()
self.assertEqual(list(parsed_arguments.keys()), ["circuit", "array"])

0 comments on commit cd9c4a9

Please sign in to comment.