Skip to content

Commit

Permalink
codefactor
Browse files Browse the repository at this point in the history
  • Loading branch information
SamFerracin committed Mar 1, 2024
1 parent 66d93c7 commit a4c04a5
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions tests/test_lab_dev/test_states.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

"""Tests for the state subpackage."""

# pylint: disable=protected-access, missing-function-docstring
# pylint: disable=protected-access, missing-function-docstring, expression-not-assigned

import numpy as np
import pytest
Expand Down Expand Up @@ -164,9 +164,7 @@ def test_representation(self):

def test_representation_error(self):
with pytest.raises(ValueError):
Coherent(
modes=[0], x=[0.1, 0.2]
).representation # pylint: disable=expression-not-assigned
Coherent(modes=[0], x=[0.1, 0.2]).representation


class TestNumber:
Expand Down Expand Up @@ -203,9 +201,7 @@ def test_representation(self):

def test_representation_error(self):
with pytest.raises(ValueError):
Coherent(
modes=[0], x=[0.1, 0.2]
).representation # pylint: disable=expression-not-assigned
Coherent(modes=[0], x=[0.1, 0.2]).representation


class TestVacuum:
Expand Down

0 comments on commit a4c04a5

Please sign in to comment.