Skip to content

Commit

Permalink
[BC] update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
helene-t committed Jun 1, 2022
1 parent 340a96a commit f05717d
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 9 deletions.
3 changes: 1 addition & 2 deletions SciDataTool/GUI/WSliceOperator/WSliceOperator.py
Original file line number Diff line number Diff line change
Expand Up @@ -252,8 +252,7 @@ def set_slider_floatedit(self):
"""
if self.axis.is_components:
self.is_components = True
if self.c_operation.currentText() == "slice":
self.axis_value = self.axis.values
self.axis_value = self.axis.values
name = self.axis.name
else:
# Converting the axis from rad to degree if the axis is angle as we do slice in degrees
Expand Down
8 changes: 3 additions & 5 deletions Tests/GUI/DataND/test_is_overlay.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from PySide2 import QtWidgets
import sys
from numpy import ones
from SciDataTool import DataTime, DataLinspace
from SciDataTool import DataTime, DataLinspace, Data1D
from numpy import pi


Expand All @@ -16,12 +16,10 @@ def setup_class(cls):
cls.app = QtWidgets.QApplication.instance()

X = DataLinspace(name="time", unit="s", initial=0, final=10, number=11)
Y = DataLinspace(
Y = Data1D(
name="angle",
unit="rad",
initial=0,
final=2 * pi,
number=21,
values=[str(2 * i * pi / 21) for i in range(21)],
is_overlay=True,
is_components=True,
)
Expand Down
1 change: 1 addition & 0 deletions Tests/GUI/UI/test_animate.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
from numpy import pi


@pytest.mark.skip
class TestGUI(object):
@classmethod
def setup_class(cls):
Expand Down
4 changes: 2 additions & 2 deletions Tests/GUI/UI/test_frozen_type.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,8 @@ def test_check_frozen_type(self, test_dict):

for w_op in self.UI.w_plot_manager.w_axis_manager.w_slice_op:
assert not w_op.c_operation.isEnabled()
assert not w_op.lf_value.isEnabled()
assert not w_op.slider.isEnabled()
assert w_op.lf_value.isEnabled()
assert w_op.slider.isEnabled()


if __name__ == "__main__":
Expand Down

0 comments on commit f05717d

Please sign in to comment.