def GPM(guname): while True: print( "\nMenu\n(1)Add Members\n(2)Show Members\n(3)Assign the members to projects\n(4)Pending approvals\n" "(5)Delete Members\n(6)Previous Menu\n") choice = input(">>> ").lower().rstrip() if choice == "1": print('Welcome Please enter the details to signup') User.sign_up(con, 'member', guname) elif choice == "2": Memberclass.show_members(con, guname) elif choice == "3": print('Here you can assign projects to members') Projects.show_projects(con) Memberclass.show_members(con, guname) Projects.Assign_projects(con) elif choice == "4": print('Here you can see all the pending approvals') Memberclass.Approval_pending(con, guname) elif choice == "6": main.Login_master(con) elif choice == "5": Memberclass.show_members(con, guname) Memberclass.delete_member(con) else: print("Invalid choice, please choose again\n")
def test_Assign_projects(self, project_id_input, memuname_input): project_id_input.return_value = 2 memuname_input.return_value = 'member' assign_projects_output = Projects.Assign_projects(self.db) self.assertTrue(assign_projects_output)