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

Method test_create_profile_default

cli/tests/test_profile.py:8–18  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

6
7class TestProfile(unittest.TestCase):
8 def test_create_profile_default(self):
9 profile = create_profile(parse_args(["site", "login"]))
10 self.assertTrue(profile["lowercase"])
11 self.assertTrue(profile["uppercase"])
12 self.assertTrue(profile["digits"])
13 self.assertTrue(profile["symbols"])
14 self.assertEqual(profile["length"], 16)
15 self.assertEqual(profile["counter"], 1)
16 self.assertEqual(profile["site"], "site")
17 self.assertEqual(profile["login"], "login")
18 self.assertEqual(profile["exclude"], "")
19
20 def test_create_profile_login(self):
21 profile = create_profile(parse_args(["site"]))

Callers

nothing calls this directly

Calls 2

create_profileFunction · 0.90
parse_argsFunction · 0.90

Tested by

no test coverage detected