77
88from scripts import populate_new_and_noteworthy_projects as script
99
10- < << << << HEAD
1110NEW_AND_NOTEWORTHY_LINKS_NODE = 'nguid'
12- == == == =
13- TEST_NEW_AND_NOTEWORTHY_GUID = 'nguid'
14-
15- > >> >> >> upstream / develop
1611
1712
1813@mock .patch ('scripts.populate_new_and_noteworthy_projects.NEW_AND_NOTEWORTHY_LINKS_NODE' , NEW_AND_NOTEWORTHY_LINKS_NODE )
@@ -22,22 +17,14 @@ def setUp(self):
2217 super ().setUp ()
2318
2419 self .new_and_noteworthy_links_node = ProjectFactory ()
25- self .new_and_noteworthy_links_node ._id = TEST_NEW_AND_NOTEWORTHY_GUID
20+ self .new_and_noteworthy_links_node ._id = NEW_AND_NOTEWORTHY_LINKS_NODE
2621 self .new_and_noteworthy_links_node .save ()
2722
28- < << << << HEAD
2923 self .nn1 = ProjectFactory (is_public = True , title = 'Noteworthy Project Alpha' )
3024 self .nn2 = ProjectFactory (is_public = True , title = 'Noteworthy Project Beta' )
3125 self .nn3 = ProjectFactory (is_public = True , title = 'Noteworthy Project Gamma' )
3226 self .nn4 = ProjectFactory (is_public = True , title = 'Noteworthy Project Delta' )
3327 self .nn5 = ProjectFactory (is_public = True , title = 'Noteworthy Project Epsilon' )
34- == == == =
35- self .nn1 = ProjectFactory (is_public = True , title = 'Noteworthy Alpha' )
36- self .nn2 = ProjectFactory (is_public = True , title = 'Noteworthy Bravo' )
37- self .nn3 = ProjectFactory (is_public = True , title = 'Noteworthy Charlie' )
38- self .nn4 = ProjectFactory (is_public = True , title = 'Noteworthy Foxtrot' )
39- self .nn5 = ProjectFactory (is_public = True , title = 'Noteworthy Golf' )
40- >> >> >> > upstream / develop
4128
4229 self .all_ids = {self .nn1 ._id , self .nn2 ._id , self .nn3 ._id , self .nn4 ._id , self .nn5 ._id }
4330
@@ -49,7 +36,7 @@ def test_get_new_and_noteworthy_nodes(self):
4936 new_noteworthy = script .get_new_and_noteworthy_nodes (self .new_and_noteworthy_links_node )
5037 assert set (new_noteworthy ) == self .all_ids
5138
52- @mock .patch .object (script , 'NEW_AND_NOTEWORTHY_LINKS_NODE' , TEST_NEW_AND_NOTEWORTHY_GUID )
39+ @mock .patch .object (script , 'NEW_AND_NOTEWORTHY_LINKS_NODE' , NEW_AND_NOTEWORTHY_LINKS_NODE )
5340 def test_populate_new_and_noteworthy (self ):
5441 assert self .new_and_noteworthy_links_node ._nodes .count () == 0
5542
0 commit comments