-
-
Notifications
You must be signed in to change notification settings - Fork 349
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
Fix YAML/Cython tests #664
Fix YAML/Cython tests #664
Conversation
Don't forget to |
Once the changes are approved, I'll autosquash and then it can be merged. |
Codecov Report
@@ Coverage Diff @@
## master #664 +/- ##
==========================================
+ Coverage 70.78% 70.78% +<.01%
==========================================
Files 373 373
Lines 43454 43454
==========================================
+ Hits 30757 30758 +1
+ Misses 12697 12696 -1
Continue to review full report at Codecov.
|
The tests now include subdirectories with data files, so those should be installed with the rest of the data files
The relative path that is eliminated here relied on being in the source directory structure, breaking tests of the installed Cython interface
The relative directory wasn't the same for the installed Cython interface
The previous behavior was to write the test files to the current working directory
cti2yaml converts input and output file names to pathlib.Path objects. This makes it easier to manage paths for test data files
Check that one, and only one, of the filename/text arguments are specified.
93a8deb
to
5f08b36
Compare
Codecov Report
@@ Coverage Diff @@
## master #664 +/- ##
==========================================
- Coverage 70.78% 70.78% -0.01%
==========================================
Files 373 373
Lines 43454 43454
==========================================
- Hits 30758 30757 -1
- Misses 12696 12697 +1
Continue to review full report at Codecov.
|
1 similar comment
Codecov Report
@@ Coverage Diff @@
## master #664 +/- ##
==========================================
- Coverage 70.78% 70.78% -0.01%
==========================================
Files 373 373
Lines 43454 43454
==========================================
- Hits 30758 30757 -1
- Misses 12696 12697 +1
Continue to review full report at Codecov.
|
This is rebased and squashed now. 👍? |
I'll merge this tomorrow if no further comments. This is blocking for Cantera/conda-recipes#19 |
These changes fix a few things that broke when testing the installed Cython interface (via
python -m unittest -v cantera.test
)Changes proposed in this pull request:
test/data/test_subdir
in the Cython interfacetest_work_dir
instead of the cwd