Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
db = Database()
db.add_ws('Sheet1',{})
db.add_ws('Sheet2',{})
db.add_ws('Sheet3',{})
db.add_ws('Sheet4',{})
db.add_ws('Sheet5',{})
db.add_ws('Sheet6',{})
db.add_ws('Sheet7',{})
db.add_ws('Sheet8',{})
db.add_ws('Sheet9',{})
db.add_ws('Sheet10',{})
# test without sharedStrings
self.assertEqual(new_workbookrels_text(db), xml_base.format(many_tag_sheets=many_tag_sheets, tag_sharedStrings=''))
# test with sharedStrings in db
db._sharedStrings = ['text']
self.assertEqual(new_workbookrels_text(db), xml_base.format(many_tag_sheets=many_tag_sheets, tag_sharedStrings=tag_sharedStrings))