Verified Commit 014b2bd6 authored by Dom Sekotill's avatar Dom Sekotill
Browse files

Use ActionFlags.ALL member instead of a new instance

`kilter.protocol` 0.4.0 provides a new member for this.
parent 0d5f38e8
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -70,7 +70,7 @@ def get_flags(filtr: Filter) -> FlagsTuple:
	"""
	Return the flags attached to a filter
	"""
	default = FlagsTuple(unset_options=NR_FLAGS, set_actions=ActionFlags(0x1ff))
	default = FlagsTuple(unset_options=NR_FLAGS, set_actions=ActionFlags.ALL)
	return _get_flags(filtr, default)


+1 −1
Original line number Diff line number Diff line
@@ -77,7 +77,7 @@ class Tests(TestCase):
			flags = options.get_flags(undecorated)

			assert (flags.set_options & ~flags.unset_options) == ProtocolFlags.NONE
			assert flags.set_actions == ActionFlags(0x1ff)
			assert flags.set_actions == ActionFlags.ALL

	def test_modify_flags(self) -> None:
		"""