@@ -77,7 +77,7 @@ class DebugInfo:
77
77
@strawberry .type
78
78
class Query :
79
79
@strawberry .field
80
- def greetings (self ) -> str : # pragma: no cover
80
+ def greetings (self ) -> str :
81
81
return "hello"
82
82
83
83
@strawberry .field
@@ -91,13 +91,13 @@ async def async_hello(self, name: Optional[str] = None, delay: float = 0) -> str
91
91
92
92
@strawberry .field (permission_classes = [AlwaysFailPermission ])
93
93
def always_fail (self ) -> Optional [str ]:
94
- return "Hey" # pragma: no cover
94
+ return "Hey"
95
95
96
96
@strawberry .field (permission_classes = [ConditionalFailPermission ])
97
97
def conditional_fail (
98
98
self , sleep : Optional [float ] = None , fail : bool = False
99
99
) -> str :
100
- return "Hey" # pragma: no cover
100
+ return "Hey"
101
101
102
102
@strawberry .field
103
103
async def error (self , message : str ) -> AsyncGenerator [str , None ]:
@@ -108,7 +108,7 @@ async def exception(self, message: str) -> str:
108
108
raise ValueError (message )
109
109
110
110
@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 :
112
112
info .context ["response" ].status_code = 418
113
113
114
114
return "🫖"
@@ -142,7 +142,7 @@ def set_header(self, info: strawberry.Info, name: str) -> str:
142
142
@strawberry .type
143
143
class Mutation :
144
144
@strawberry .mutation
145
- def echo (self , string_to_echo : str ) -> str : # pragma: no cover
145
+ def echo (self , string_to_echo : str ) -> str :
146
146
return string_to_echo
147
147
148
148
@strawberry .mutation
@@ -162,7 +162,7 @@ def read_folder(self, folder: FolderInput) -> List[str]:
162
162
return list (map (_read_file , folder .files ))
163
163
164
164
@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 :
166
166
text = text_file .read ().decode ()
167
167
return pattern if pattern in text else ""
168
168
@@ -199,7 +199,7 @@ async def exception(self, message: str) -> AsyncGenerator[str, None]:
199
199
raise ValueError (message )
200
200
201
201
# Without this yield, the method is not recognised as an async generator
202
- yield "Hi" # pragma: no cover
202
+ yield "Hi"
203
203
204
204
@strawberry .subscription
205
205
async def flavors (self ) -> AsyncGenerator [Flavor , None ]:
0 commit comments