Skip to content

Adding tests for the python wrapper#89

Merged
andrsd merged 3 commits intomainfrom
py-tests
Feb 23, 2026
Merged

Adding tests for the python wrapper#89
andrsd merged 3 commits intomainfrom
py-tests

Conversation

@andrsd
Copy link
Owner

@andrsd andrsd commented Feb 23, 2026

No description provided.

@andrsd andrsd self-assigned this Feb 23, 2026
- Create python/tests/ with __init__.py, conftest.py, and test_file.py
- Implement 10 comprehensive test functions covering:
  - File operations (open, create, append)
  - Various mesh types (TET4, TRI3, BAR2)
  - Element blocks, node sets, side sets
  - Time-stepped variables (nodal, elemental, global)
- Add Python bindings for missing types in python/src/exodusIIcpp.cpp:
  - FileAccess enum (READ, WRITE, APPEND)
  - ElementBlock class with 10 methods
  - NodeSet class with 8 methods
  - SideSet class with 10 methods
  - Two-argument File constructor
  - Additional method overloads and custom wrappers

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
andrsd and others added 2 commits February 23, 2026 16:55
Add step to run Python pytest tests via CTest in the build workflow.
The workflow already has the necessary dependencies and configuration
(-DEXODUSIICPP_WITH_PYTHON=ON, -DEXODUSIICPP_BUILD_TESTS=YES).

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
@andrsd andrsd merged commit c3e4ac7 into main Feb 23, 2026
6 checks passed
@andrsd andrsd deleted the py-tests branch February 23, 2026 23:59
@codecov
Copy link

codecov bot commented Feb 24, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.75%. Comparing base (7782fe0) to head (0b0ce41).
⚠️ Report is 4 commits behind head on main.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #89      +/-   ##
==========================================
+ Coverage   99.71%   99.75%   +0.04%     
==========================================
  Files          13       14       +1     
  Lines         705      823     +118     
==========================================
+ Hits          703      821     +118     
  Misses          2        2              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant