@@ -83,7 +83,7 @@ class DebugInfo:
83
83
@strawberry .type
84
84
class Query :
85
85
@strawberry .field
86
- def greetings (self ) -> str :
86
+ def greetings (self ) -> str : # pragma: no cover
87
87
return "hello"
88
88
89
89
@strawberry .field
@@ -114,7 +114,7 @@ async def exception(self, message: str) -> str:
114
114
raise ValueError (message )
115
115
116
116
@strawberry .field
117
- def teapot (self , info : strawberry .Info [Any , None ]) -> str :
117
+ def teapot (self , info : strawberry .Info [Any , None ]) -> str : # pragma: no cover
118
118
info .context ["response" ].status_code = 418
119
119
120
120
return "🫖"
@@ -148,7 +148,7 @@ def set_header(self, info: strawberry.Info, name: str) -> str:
148
148
@strawberry .type
149
149
class Mutation :
150
150
@strawberry .mutation
151
- def echo (self , string_to_echo : str ) -> str :
151
+ def echo (self , string_to_echo : str ) -> str : # pragma: no cover
152
152
return string_to_echo
153
153
154
154
@strawberry .mutation
@@ -168,7 +168,7 @@ def read_folder(self, folder: FolderInput) -> List[str]:
168
168
return list (map (_read_file , folder .files ))
169
169
170
170
@strawberry .mutation
171
- def match_text (self , text_file : Upload , pattern : str ) -> str :
171
+ def match_text (self , text_file : Upload , pattern : str ) -> str : # pragma: no cover
172
172
text = text_file .read ().decode ()
173
173
return pattern if pattern in text else ""
174
174
@@ -205,7 +205,7 @@ async def exception(self, message: str) -> AsyncGenerator[str, None]:
205
205
raise ValueError (message )
206
206
207
207
# Without this yield, the method is not recognised as an async generator
208
- yield "Hi"
208
+ yield "Hi" # pragma: no cover
209
209
210
210
@strawberry .subscription
211
211
async def flavors (self ) -> AsyncGenerator [Flavor , None ]:
0 commit comments