소스 검색

test_state: assert popped value is the actual value (#1906)

Masen Furer 1 년 전
부모
커밋
43cc8d4f6c
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      tests/test_state.py

+ 1 - 1
tests/test_state.py

@@ -1658,7 +1658,7 @@ class BackgroundTaskState(State):
 
 
         async with self:
         async with self:
             # Methods on ImmutableMutableProxy should return their wrapped return value.
             # Methods on ImmutableMutableProxy should return their wrapped return value.
-            assert self.dict_list.pop("foo") is not None
+            assert self.dict_list.pop("foo") == [1, 2, 3]
 
 
             self.order.append("background_task:stop")
             self.order.append("background_task:stop")
             self.other()  # direct calling event handlers works in context
             self.other()  # direct calling event handlers works in context