Skip to content

Commit

Permalink
[BEAM-13955] Fix pylint breakage from #16836 (#16867)
Browse files Browse the repository at this point in the history
  • Loading branch information
TheNeuralBit authored Feb 16, 2022
1 parent 6e98dd4 commit 9cac23a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions sdks/python/apache_beam/transforms/userstate_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,29 +164,29 @@ def test_state_spec_proto_conversion(self):
context = pipeline_context.PipelineContext()
state = BagStateSpec('statename', VarIntCoder())
state_proto = state.to_runner_api(context)
self.assertEquals(
self.assertEqual(
beam_runner_api_pb2.FunctionSpec(urn=common_urns.user_state.BAG.urn),
state_proto.protocol)

context = pipeline_context.PipelineContext()
state = CombiningValueStateSpec(
'statename', VarIntCoder(), TopCombineFn(10))
state_proto = state.to_runner_api(context)
self.assertEquals(
self.assertEqual(
beam_runner_api_pb2.FunctionSpec(urn=common_urns.user_state.BAG.urn),
state_proto.protocol)

context = pipeline_context.PipelineContext()
state = SetStateSpec('setstatename', VarIntCoder())
state_proto = state.to_runner_api(context)
self.assertEquals(
self.assertEqual(
beam_runner_api_pb2.FunctionSpec(urn=common_urns.user_state.BAG.urn),
state_proto.protocol)

context = pipeline_context.PipelineContext()
state = ReadModifyWriteStateSpec('valuestatename', VarIntCoder())
state_proto = state.to_runner_api(context)
self.assertEquals(
self.assertEqual(
beam_runner_api_pb2.FunctionSpec(urn=common_urns.user_state.BAG.urn),
state_proto.protocol)

Expand Down

0 comments on commit 9cac23a

Please sign in to comment.