@@ -34,17 +34,27 @@ class Repo:
3434 repo .working_dir = loc
3535 cre = defs .CRE (name = "blah" , id = "223-780" )
3636 self .collection .add_cre (cre )
37- with open (os .path .join (os .path .join (loc , "cheatsheets" ), "cs.md" ), "w" ) as mdf :
37+ with open (
38+ os .path .join (
39+ os .path .join (loc , "cheatsheets" ),
40+ "Secrets_Management_Cheat_Sheet.md" ,
41+ ),
42+ "w" ,
43+ ) as mdf :
3844 mdf .write (cs )
3945 mock_clone .return_value = repo
4046 entries = cheatsheets_parser .Cheatsheets ().parse (
4147 cache = self .collection , ph = PromptHandler (database = self .collection )
4248 )
4349 expected = defs .Standard (
4450 name = "OWASP Cheat Sheets" ,
45- hyperlink = "https://cheatsheetseries.owasp.org/cheatsheets/cs .html" ,
51+ hyperlink = "https://cheatsheetseries.owasp.org/cheatsheets/Secrets_Management_Cheat_Sheet .html" ,
4652 section = "Secrets Management Cheat Sheet" ,
47- links = [defs .Link (document = cre , ltype = defs .LinkTypes .LinkedTo )],
53+ links = [
54+ defs .Link (
55+ document = cre , ltype = defs .LinkTypes .AutomaticallyLinkedTo
56+ )
57+ ],
4858 )
4959 self .maxDiff = None
5060 for name , nodes in entries .results .items ():
@@ -56,7 +66,7 @@ class Repo:
5666 for node in nodes
5767 if node .section == "Secrets Management Cheat Sheet"
5868 ][0 ]
59- self .assertCountEqual (expected .todict (), secret_entry .todict ())
69+ self .assertEqual (expected .todict (), secret_entry .todict ())
6070
6171 def test_register_supplemental_cheatsheets (self ) -> None :
6272 for cre_id , name in [
0 commit comments