Skip to content

Commit

Permalink
feat: adding snapshot tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jandom committed Aug 6, 2023
1 parent 3edf4be commit d095610
Show file tree
Hide file tree
Showing 20 changed files with 2,191 additions and 5 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/gh-ci-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,10 @@ jobs:
micromamba info
micromamba list
- name: "test snapshots"
working-directory: doc/source/scripts/
run: python -m pytest

- name: "test notebooks"
run: |
cd ${GITHUB_WORKSPACE}/tests
pytest
working-directory: tests/
run: python -m pytest
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ repos:
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
exclude: ^.*\.(pdb)$
exclude: ^.*\.(pdb|ambr)$
- repo: https://github.com/pycqa/isort
rev: 5.12.0
hooks:
Expand Down
2 changes: 1 addition & 1 deletion doc/source/scripts/gen_format_overview_classes.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

sorted_types = sorted(FILE_TYPES.items())

SUCCESS = "\u2713"
SUCCESS = "\u2713" # checkmark
FAIL = ""


Expand Down
1 change: 1 addition & 0 deletions doc/source/scripts/gen_unit_tables.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ def write_unit_table(filename):
)
f.write("\n")
print("Wrote ", filename)
return tables


if __name__ == "__main__":
Expand Down
Loading

0 comments on commit d095610

Please sign in to comment.