FIX: Add infrastructure for python tests (#91)

Also integrated with CI and runs tests in documentation
This commit is contained in:
Nicolás Hatcher Andrés
2024-09-21 15:46:32 +02:00
committed by GitHub
parent 11df4a55c7
commit bf9a1ed9f4
8 changed files with 79 additions and 8 deletions

View File

@@ -0,0 +1,8 @@
import ironcalc as ic
model = ic.create("model", "en", "UTC")
model.set_user_input(0, 1, 1, "=21*2")
model.evaluate()
assert model.get_formatted_cell_value(0, 1, 1), 42

View File

@@ -1,7 +1,13 @@
Welcome to ProjectName's documentation!
======================================
IronCalc: The democratization of spreadsheets
=============================================
.. toctree::
:maxdepth: 2
:caption: Contents:
IronCalc is a spreadsheet engine that allows you to create, modify and safe spreadsheets.
A simple example that creates a model, sets a formula, evaluates it and gets the result back:
.. literalinclude:: examples/simple.py
:language: python