Esempio n. 1
0
 def getAndStoreConceptFolderListTest(self):
     tm = TogManager()
     tm.getAndStoreConceptFolderList()
     try:
         self.assertTrue(len(tm.conceptFolderList) > 0)
     except Exception as e:
         print(e)
         print(
             "getAndStoreConceptFolderList did not fill the self.conceptFolderList"
         )
Esempio n. 2
0
 def checkContentsOfConceptFolderList(self):
     tm = TogManager()
     tm.getAndStoreConceptFolderList()
     for concept in tm.conceptFolderList:
         fileName = os.path.basename(concept)
         try:
             self.assertTrue(fileName == "Concept Drawings")
         except Exception as e:
             print(e)
             print(
                 "self.conceptFolderList contains an filepath whose base item's name is not Concept Drawing"
             )
Esempio n. 3
0
 def getAdditionalCoverSheets(self):
     tm = TogManager()
     tm.getCoverSheets()
     try:
         self.assertTrue(len(tm.coverSheetPaths) > 0)
     except Exception as e:
         print(e)
         print(
             "additionalCoverSheetPaths list is empty, was not filled from getAdditionalCoverSheets"
         )
     for coverSheetPath in tm.coverSheetPaths:
         file = os.path.basename(coverSheetPath)
         try:
             self.assertTrue(file == "Cover Sheet.pdf")
         except Exception as e:
             print(e)
             print("Cover Sheet name is wrong:", file)
Esempio n. 4
0
 def IsConceptFolderListEmptyAfterFunction(self):
     tm = TogManager()
     tm.getAndStoreConceptFolderList()
     tm.moveConceptualDrawingFolders()
     try:
         self.assertTrue(not tm.conceptFolderList)  #i.e. list is empty
     except Exception as e:
         print(e)
         print("Not all concept folders were moved", tm.conceptFolderList)
Esempio n. 5
0
 def moveCoverSheetsVettingTest(self):
     tm = TogManager()
     tm.getCoverSheets(r"C:\Pkgs\Vetting")
     tm.moveAdditionalCoverSheets()
Esempio n. 6
0
 def moveCoverSheetsAdditionalTest(self):
     tm = TogManager()
     tm.getCoverSheets()
     tm.moveAdditionalCoverSheets()
Esempio n. 7
0
 def IsDirectoryAFacilityTest(self):
     tm = TogManager()
     for tog in tm.togs:
         self.assertTrue(tm.isDirectoryAFacility(tog))
     self.assertTrue(not tm.isDirectoryAFacility(''))