MCPcopy Create free account
hub / github.com/lesspass/lesspass / test_parse_args_save_path

Method test_parse_args_save_path

cli/tests/test_cli.py:122–130  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

120 self.assertFalse(parse_args(["site"]).no_fingerprint)
121
122 def test_parse_args_save_path(self):
123 self.assertEqual(
124 parse_args(["--save", "/tmp/profiles.json"]).save_path, "/tmp/profiles.json"
125 )
126 self.assertEqual(parse_args(["site"]).save_path, None)
127 with patch.dict("os.environ", {"XDG_CONFIG_HOME": "/tmp"}):
128 self.assertEqual(
129 parse_args(["--save"]).save_path, "/tmp/lesspass/profiles.json"
130 )
131
132 def test_parse_args_load_path(self):
133 self.assertEqual(

Callers

nothing calls this directly

Calls 1

parse_argsFunction · 0.90

Tested by

no test coverage detected