We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9de6384 commit a0c7b87Copy full SHA for a0c7b87
tests/test_cli.py
@@ -14,13 +14,17 @@ def test_cli_main(self):
14
__main__.main()
15
self.assertEqual(ex.exception.code, 2)
16
17
- self.assertIsNone(__main__.main(["thainlp", "data", "path"]))
+ with self.assertRaises((ArgumentError, SystemExit)):
18
+ self.assertIsNone(__main__.main(["thainlp"]))
19
20
with self.assertRaises((ArgumentError, SystemExit)):
21
self.assertIsNone(
22
__main__.main(["thainlp", "NOT_EXIST", "command"])
23
)
24
25
+ self.assertIsNone(__main__.main(["thainlp", "data", "path"]))
26
+
27
28
def test_cli_data(self):
29
self.assertIsInstance(getattr(cli, "data"), ModuleType)
30
0 commit comments