Skip to content

Commit

Permalink
Fixed enum to str error
Browse files Browse the repository at this point in the history
  • Loading branch information
NischalQuTech committed Jan 8, 2024
1 parent d6ca937 commit 27f248a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/sdk/test_circuit.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,14 @@ def test_get_content_type(openql: MagicMock, mock_file: None) -> None:
with Circuit(platform_name="platform", program_name="program") as c:
pass

assert c.content_type == AlgorithmType.QUANTUM
assert c.content_type == str(AlgorithmType.QUANTUM)


def test_get_compile_stage(openql: MagicMock, mock_file: None) -> None:
with Circuit(platform_name="platform", program_name="program") as c:
pass

assert c.compile_stage == CompileStage.NONE
assert c.compile_stage == str(CompileStage.NONE)


def test_create_empty_circuit(openql: MagicMock, mock_file: None) -> None:
Expand Down

0 comments on commit 27f248a

Please sign in to comment.