Skip to content

Commit

Permalink
Test: Check diff-pdf-visually outputs
Browse files Browse the repository at this point in the history
  • Loading branch information
adrien-berchet committed Nov 11, 2024
1 parent 3b8c632 commit c183ace
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/run-tox.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,10 @@ jobs:
python -m pip install --upgrade pip setuptools
pip install tox-gh-actions
tox
- name: Check results in tox environments
run: |
ls .tox
ls .tox/py*/tmp
- name: Run tox with min versions
if: ${{ matrix.min_versions == 'min_versions' }}
run: |
Expand Down
7 changes: 7 additions & 0 deletions tests/test_vacuum_workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,18 @@ def test_ValidateVacuumSynthesis(vacuum_working_directory, data_dir):
data_dir_pattern = str(data_dir) + "/?"
result_dir_pattern = str(result_dir) + "/?"

tmp_dir = result_dir / "tmpdir_for_diff"
tmp_dir.mkdir(parents=True, exist_ok=True)

# Check the results
assert_equal_trees(
expected_dir,
result_dir,
specific_args={
"validation/morphometrics/morphometrics_apical_dendrite.pdf": {
"verbosity": 3,
"tempdir": tmp_dir,
},
"morphs_df/vacuum_synth_morphs_df.csv": {
"format_data_kwargs": {
"replace_pattern": {(result_dir_pattern, ""): ["vacuum_synth_morphologies"]}
Expand Down

0 comments on commit c183ace

Please sign in to comment.