From 1ce80fa285d532a6023ae8bcd7443a8a650a4c0e Mon Sep 17 00:00:00 2001 From: salman2013 Date: Fri, 15 Mar 2024 17:24:25 +0500 Subject: [PATCH] chore: remove commented code --- xblock/test/test_fields.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/xblock/test/test_fields.py b/xblock/test/test_fields.py index eca5ffb25..850563caf 100644 --- a/xblock/test/test_fields.py +++ b/xblock/test/test_fields.py @@ -703,7 +703,6 @@ def test_setting_the_same_value_marks_field_as_dirty(): # pylint: disable=unsubscriptable-object class FieldTester(XBlock): """Test block for set - get test.""" - # non_mutable = String(scope=Scope.settings) list_field = List(scope=Scope.settings) dict_field = Dict(scope=Scope.settings) @@ -714,17 +713,13 @@ class FieldTester(XBlock): assert len(field_tester._dirty_fields) == 0 assert not field_tester.fields['list_field'].is_set_on(field_tester) assert not field_tester.fields['dict_field'].is_set_on(field_tester) - # assert not field_tester.fields['non_mutable'].is_set_on(field_tester) - # field_tester.non_mutable = field_tester.non_mutable field_tester.list_field = field_tester.list_field field_tester.dict_field = field_tester.dict_field - # assert not field_tester.fields['non_mutable'] in field_tester._dirty_fields assert field_tester.fields['list_field'] in field_tester._dirty_fields assert field_tester.fields['dict_field'] in field_tester._dirty_fields - # assert not field_tester.fields['non_mutable'].is_set_on(field_tester) assert not field_tester.fields['list_field'].is_set_on(field_tester) assert not field_tester.fields['dict_field'].is_set_on(field_tester)