@@ -77,7 +77,7 @@ class DebugInfo:
7777@strawberry .type
7878class Query :
7979 @strawberry .field
80- def greetings (self ) -> str : # pragma: no cover
80+ def greetings (self ) -> str :
8181 return "hello"
8282
8383 @strawberry .field
@@ -91,13 +91,13 @@ async def async_hello(self, name: Optional[str] = None, delay: float = 0) -> str
9191
9292 @strawberry .field (permission_classes = [AlwaysFailPermission ])
9393 def always_fail (self ) -> Optional [str ]:
94- return "Hey" # pragma: no cover
94+ return "Hey"
9595
9696 @strawberry .field (permission_classes = [ConditionalFailPermission ])
9797 def conditional_fail (
9898 self , sleep : Optional [float ] = None , fail : bool = False
9999 ) -> str :
100- return "Hey" # pragma: no cover
100+ return "Hey"
101101
102102 @strawberry .field
103103 async def error (self , message : str ) -> AsyncGenerator [str , None ]:
@@ -108,7 +108,7 @@ async def exception(self, message: str) -> str:
108108 raise ValueError (message )
109109
110110 @strawberry .field
111- def teapot (self , info : strawberry .Info [Any , None ]) -> str : # pragma: no cover
111+ def teapot (self , info : strawberry .Info [Any , None ]) -> str :
112112 info .context ["response" ].status_code = 418
113113
114114 return "🫖"
@@ -142,7 +142,7 @@ def set_header(self, info: strawberry.Info, name: str) -> str:
142142@strawberry .type
143143class Mutation :
144144 @strawberry .mutation
145- def echo (self , string_to_echo : str ) -> str : # pragma: no cover
145+ def echo (self , string_to_echo : str ) -> str :
146146 return string_to_echo
147147
148148 @strawberry .mutation
@@ -162,7 +162,7 @@ def read_folder(self, folder: FolderInput) -> List[str]:
162162 return list (map (_read_file , folder .files ))
163163
164164 @strawberry .mutation
165- def match_text (self , text_file : Upload , pattern : str ) -> str : # pragma: no cover
165+ def match_text (self , text_file : Upload , pattern : str ) -> str :
166166 text = text_file .read ().decode ()
167167 return pattern if pattern in text else ""
168168
@@ -199,7 +199,7 @@ async def exception(self, message: str) -> AsyncGenerator[str, None]:
199199 raise ValueError (message )
200200
201201 # Without this yield, the method is not recognised as an async generator
202- yield "Hi" # pragma: no cover
202+ yield "Hi"
203203
204204 @strawberry .subscription
205205 async def flavors (self ) -> AsyncGenerator [Flavor , None ]:
0 commit comments