File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -551,7 +551,7 @@ def btn_clicked_slice(self):
551
551
self .statusbar .update ()
552
552
# must keep this return statement to abort execution!
553
553
return
554
- elif not self .fvar_table_model .instance_data_validates ():
554
+ elif not self .fvar_table_model .instance_data_validates_missing_data ():
555
555
SliceErrorDialog (
556
556
"You requested the same design space that is supported in the "
557
557
"font path that you are processing. Please define at least one "
Original file line number Diff line number Diff line change @@ -293,7 +293,7 @@ def get_instance_data(self):
293
293
294
294
return instance_data
295
295
296
- def instance_data_validates (self ):
296
+ def instance_data_validates_missing_data (self ):
297
297
# validator that returns True if there is at least one
298
298
# axis tag with a defined instance, and False if all
299
299
# axis tags have blank entry fields = the original variable
Original file line number Diff line number Diff line change @@ -112,7 +112,7 @@ def test_designaxis_model_get_partial_instance_data(qtbot):
112
112
}
113
113
114
114
115
- def test_designaxis_model_instance_data_validates (qtbot ):
115
+ def test_designaxis_model_instance_data_validates_missing_data (qtbot ):
116
116
tableview = QTableView ()
117
117
model = DesignAxisModel ()
118
118
tableview .setModel (model )
@@ -125,7 +125,7 @@ def test_designaxis_model_instance_data_validates(qtbot):
125
125
# variable
126
126
assert model .get_instance_data () == {}
127
127
128
- assert model .instance_data_validates () is False
128
+ assert model .instance_data_validates_missing_data () is False
129
129
130
130
# fill model and try again
131
131
# this requires at least one axis to have a value
@@ -136,7 +136,7 @@ def test_designaxis_model_instance_data_validates(qtbot):
136
136
model ._data [4 ][1 ] = ""
137
137
model .layoutChanged .emit ()
138
138
139
- assert model .instance_data_validates () is True
139
+ assert model .instance_data_validates_missing_data () is True
140
140
141
141
142
142
def test_designaxis_model_get_number_of_axes (qtbot ):
You can’t perform that action at this time.
0 commit comments