Assert files in test automation
Project description
Assert-files
This lib is a support assert to validate files content (txt, csv, pdf, docx, xlsx and etc.).
Features
- Implemented
- PDF
- Form Comparing
- PDF
- Not Implemente
- PDF *All text comparing
- TXT
- CSV
- DOCX
- XLSX
Installation
Follow lib instructions on https://pypi.org/project/assert-files/
pip install assert-files
How to use
You are able to use assert_file.file.File object or just provide the path of local file
from assert_files.assert_files import assert_objects
from assert_files.file import File
fields = ['field1', 'field2']
assert_objects(
File(filepath='./tests/files/test_main.pdf'),
File(filepath='./tests/files/test_main_copy.pdf'),
fields=fields
)
from assert_files.assert_files import assert_files_by_path
fields = ['field1', 'field2']
assert_files_by_path(
'./tests/files/test_main.pdf',
'./tests/files/test_main_copy.pdf',
fields=fields
)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
assert-files-0.1.3.tar.gz
(4.3 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file assert-files-0.1.3.tar.gz.
File metadata
- Download URL: assert-files-0.1.3.tar.gz
- Upload date:
- Size: 4.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0efddcac0befa0336d90ee7802bd7b93dbf937aa74efac6621d6d84ebb7c17d2
|
|
| MD5 |
a45f8088a06b07094df94a151609cfd0
|
|
| BLAKE2b-256 |
c886e591efdb7aecb61a18c1868b77ce57c3dce559811b15a5ddde2bdbb6dd54
|
File details
Details for the file assert_files-0.1.3-py3-none-any.whl.
File metadata
- Download URL: assert_files-0.1.3-py3-none-any.whl
- Upload date:
- Size: 4.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fc72cdcceb710e9365c90951c001ed4be961aa4982858e93709560984255a237
|
|
| MD5 |
7c2e963145fa3520dc5250f236afec32
|
|
| BLAKE2b-256 |
2ba7274397b5a1820b118e86888d21507bb81e130580b239fa2f80cb49e77fbb
|