MCPcopy Create free account
hub / github.com/GothenburgBitFactory/taskwarrior / assertNumeric

Method assertNumeric

test/export.test.py:84–91  ·  view source on GitHub ↗

Checks the type of the value to be int, and that the expected value matches the actual value produced.

(self, value, expected_value=None)

Source from the content-addressed store, hash-verified

82 self.assertEqual(value, expected_value)
83
84 def assertNumeric(self, value, expected_value=None):
85 """
86 Checks the type of the value to be int, and that the expected value
87 matches the actual value produced.
88 """
89 self.assertType(value, numbers.Real)
90 if expected_value is not None:
91 self.assertEqual(value, expected_value)
92
93 def test_export_status(self):
94 self.assertString(self.export(1)["status"], "pending")

Callers 2

test_export_urgencyMethod · 0.95

Calls 1

assertTypeMethod · 0.95

Tested by

no test coverage detected