Skip to content

Commit

Permalink
chore: remove commented code
Browse files Browse the repository at this point in the history
  • Loading branch information
salman2013 committed Mar 15, 2024
1 parent c756801 commit 1ce80fa
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions xblock/test/test_fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand All @@ -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)

Expand Down

0 comments on commit 1ce80fa

Please sign in to comment.