๐Ÿ“ฆ Colin-b / tesxcel

Ensure Microsoft Excel books content with pytest

โ˜… 1 stars โ‘‚ 1 forks ๐Ÿ‘ 1 watching โš–๏ธ MIT License
excelmicrosoftpytesttest
๐Ÿ“ฅ Clone https://github.com/Colin-b/tesxcel.git
HTTPS git clone https://github.com/Colin-b/tesxcel.git
SSH git clone git@github.com:Colin-b/tesxcel.git
CLI gh repo clone Colin-b/tesxcel
Colin Bounouar Colin Bounouar Merge pull request #5 from Colin-b/master 20520a3 5 years ago ๐Ÿ“ History
๐Ÿ“‚ develop View all commits โ†’
๐Ÿ“ tests
๐Ÿ“ tesxcel
๐Ÿ“„ _config.yml
๐Ÿ“„ .gitignore
๐Ÿ“„ .travis.yml
๐Ÿ“„ CHANGELOG.md
๐Ÿ“„ CONTRIBUTING.md
๐Ÿ“„ LICENSE
๐Ÿ“„ README.md
๐Ÿ“„ setup.py
๐Ÿ“„ README.md

Ensure Microsoft Excel books content with pytest

pypi version Build status Coverage Code style: black Number of tests Number of downloads

Ensure that two Microsoft Excel files have the same cell types and content in every sheet. Supported file formats are: .xlsx, .xlsm, .xltx, .xltm

import tesxcel

def test_excel_file_using_path():
    tesxcel.assert_excel_content("/path/to/the/first_file.xlsx", "/path/to/the/second_file.xlsx")

def test_excel_file_using_content():
    received_excel_content: bytes = None
    tesxcel.assert_excel_content(received_excel_content, "/path/to/the/excel_file_to_compare.xlsx")

How to install

  • python 3.6+ must be installed
  • Use pip to install module:
python -m pip install tesxcel