Commit Graph
10 Commits
Author SHA1 Message Date
Ray Speth 38fbee09c8 [Test] Update Pint version check 2025-08-29 20:22:53 -05:00
Bryan Weber dd03a35ca7 [Python/Test] Work around pint TypeError
Set up unit tests to be skipped if pint can't be imported. There is a known bug with pint and Python 3.13 that prevents importorskip from working.
2024-08-02 19:38:56 -04:00
Ray Speth 3ee75b0b25 [Test] Skip pint-based tests for pint<0.17.0
The test helpers we use for the pint-based tests require pint 0.17
or newer. This requirement doesn't extend to the cantera.with_units
module, though, which works with with versions at least as far back
as 0.10.1.
2023-08-09 11:34:45 -05:00
Ingmar Schoegl a22fe7dc32 [unittest] Handle case where pint is not installed 2023-08-06 11:18:02 -05:00
Bryan Weber 5395a57aa5 Address comments about tests 2023-04-25 18:14:19 -04:00
Bryan Weber d469ab2811 Fix testing and docs build failures 2023-04-25 18:14:19 -04:00
Bryan Weber c64773d7f4 [Units] Add tests that all properties are implemented 2023-04-25 18:14:19 -04:00
Bryan Weber 82c323f3f8 Refactor dimensions tests 2023-04-25 18:14:19 -04:00
Bryan Weber c02f01725d [Units/Test] Refactor test suite to use pytest
This increases the line coverage to near 100%, uses pint's testing
assertions rather than rolling our own, and uses parameterize
extensively to reduce boilerplate in testing as many properties as
possible.
2023-04-25 18:14:19 -04:00
Bryan Weber 5af39ca105 Fix up tests for units module
* Remove unnecessary tests of the underlying implementation that
  duplicate functionality in the upstream tests.
* Move some dimensionality tests into the PureFluid tests where the
  saturation and critical attributes exist.
* Remove unused imports
2023-04-25 18:14:19 -04:00