Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tests for formato_dbf.py module #150

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

ABHISHEKSONI121
Copy link
Collaborator

@ABHISHEKSONI121 ABHISHEKSONI121 commented May 25, 2024

Summary

Related to #161
This test file (test_formato_dbf.py) contains unit tests for the formato_dbf module. The tests cover the following functionality:

  • Reading DBF files: The tests ensure that the leer function correctly reads data from DBF files and returns the expected dictionary structure.
  • Writing DBF files: The tests verify that the escribir function writes data to DBF files in the correct format and structure.
  • Handling different field types: The tests check that the module correctly handles various field types, such as numeric, alphanumeric, and date fields.
  • Error handling: The tests ensure that the module gracefully handles error scenarios, such as missing or invalid files.

Checklist

  • Classes, Variables, function and methods logic ok
  • Comments written explaining what the code does
  • All python code is PEP8 compliant (run black .)
  • No lint issues (run flake8)
  • Test coverage with pytest implemented
  • Reviewers assigned (at least 1 mentor)

Manual test evidence

14 passed

This reverts commit 66953db.

Signed-off-by: SONIABHISHEK121 <[email protected]>
Signed-off-by: SONIABHISHEK121 <[email protected]>
@ABHISHEKSONI121 ABHISHEKSONI121 marked this pull request as draft June 4, 2024 17:34
@ABHISHEKSONI121 ABHISHEKSONI121 added bug Something isn't working enhancement New feature or request help wanted Extra attention is needed labels Jun 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant