Skip to content

Commit

Permalink
Merge branch 'dev' of https://github.com/chuongmep/aps-toolkit into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
chuongmep committed Mar 19, 2024
2 parents c457dc8 + 3ddcabc commit caecc5a
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions APSToolkitPython/src/test/test_bim360.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,19 +36,21 @@ def test_get_folder_contents(self):
top_folders = self.bim360.get_top_folders(hubs['data'][0]['id'], projects['data'][0]['id'])
folder_contents = self.bim360.get_folder_contents(projects['data'][0]['id'], top_folders['data'][0]['id'])
self.assertNotEquals(folder_contents, 0)

def test_get_item_info(self):
item_info = self.bim360.get_item_info(self.project_id, self.item_id)
self.assertNotEquals(item_info, 0)
def test_get_item_versions(self):
items =self.bim360.batch_report_items(self.project_id, self.folder_id)
self.assertNotEquals(items, 0)

def test_get_item_versions(self):
items = self.bim360.batch_report_items(self.project_id, self.folder_id)
self.assertNotEquals(len(items), 0)

def test_batch_report_item_versions(self):
df = self.bim360.batch_report_item_versions(self.project_id, self.item_id)
self.assertNotEquals(df.empty, True)

def test_get_urn_item_version(self):
urn = self.bim360.get_urn_item_version(self.project_id, self.item_id,2)
urn = self.bim360.get_urn_item_version(self.project_id, self.item_id, 2)
self.assertNotEquals(urn, "")

def test_batch_report_projects(self):
Expand All @@ -57,4 +59,4 @@ def test_batch_report_projects(self):

def test_get_item__display_name(self):
item_name = self.bim360.get_item_display_name(self.project_id, self.item_id)
self.assertNotEquals(item_name, "")
self.assertNotEquals(item_name, "")

0 comments on commit caecc5a

Please sign in to comment.