How to use the pylightxl.writexl.writexl function in pylightxl

To help you get started, we’ve selected a few pylightxl examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github PydPiper / pylightxl / test / test_integration.py View on Github external
def test_reading_written_cells(self):
        file_path = 'temporary_test_file.xlsx'
        db = Database()
        db.add_ws('new_ws', {})
        ws = db.ws('new_ws')
        ws.update_index(row=4, col=2, val=42)
        writexl(db, file_path)
        db = readxl(file_path)
        self.assertEqual(db.ws('new_ws').index(4, 2), 42)
        remove(file_path)
github PydPiper / pylightxl / test / test_integration.py View on Github external
def test_reading_written_ws(self):
        file_path = 'temporary_test_file.xlsx'
        db = Database()
        db.add_ws('new_ws', {})
        writexl(db, file_path)
        db = readxl(file_path)
        self.assertEqual(db.ws_names, ['new_ws'])
        remove(file_path)