We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 905aefd commit c8d7ddeCopy full SHA for c8d7dde
.coveragerc
@@ -2,7 +2,9 @@
2
3
[run]
4
branch = True
5
-omit = */tests/*
+omit =
6
+ */tests/*
7
+ fluent/__about__.py
8
9
[report]
10
omit = */tests/*
tests/test_sender.py
@@ -142,6 +142,12 @@ def test_emit_error(self):
142
self.assertEqual(len(data), 1)
143
self.assertEqual(data[0][2]["message"], "Can't output to log")
144
145
+ def test_emit_error_no_forward(self):
146
+ with self._sender as sender:
147
+ sender.forward_packet_error = False
148
+ with self.assertRaises(TypeError):
149
+ sender.emit("blah", {"a": object()})
150
+
151
def test_emit_after_close(self):
152
with self._sender as sender:
153
self.assertTrue(sender.emit("blah", {"a": "123"}))
0 commit comments