Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
blank_issues_enabled: false
contact_links:
- name: Discussions
url: https://github.com/AustralianCancerDataNetwork/hemonc-alchemy/discussions
about: Questions and general discussion about HemOnc Alchemy.
- name: Existing issues
url: https://github.com/AustralianCancerDataNetwork/hemonc-alchemy/issues
about: Search existing issues before opening a new report.
4 changes: 4 additions & 0 deletions tests/test_enum_casting.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,10 @@ def test_unknown_value_is_dropped_not_crashed(self, sqlite_session, tmp_path):
assert set(rows) == {Canonicaltriples_Class_1Enum.PROCEDURE, Canonicaltriples_Class_1Enum.REGIMEN}


@pytest.mark.skipif(
not _REAL_DATA_DIR.is_dir(),
reason=f"real HemOnc extracts not found at {_REAL_DATA_DIR} (set HEMONC_DATA_DIR)",
)
@pytest.mark.postgres
class TestSurrogatePkEnumColumn:
"""`Drugs` is a surrogate-PK ("content") table with a nullable sa.Enum
Expand Down
12 changes: 9 additions & 3 deletions tests/test_notebook_taxonomy.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
"""Tests for the notebooks' shared classification rules.

`notebooks/_taxonomy.py` is not part of the installed package -- it is a
helper the demonstration notebooks import. It is tested here because four
notebooks depend on it and their published figures change if it drifts.
helper the optional demonstration notebooks import. When the notebook bundle
is present locally, it is tested here because several notebooks depend on it
and their published figures change if it drifts. Package CI may not check out
the ignored notebook bundle, so the module-level import is intentionally
optional.
"""

from __future__ import annotations
Expand All @@ -16,7 +19,10 @@
if str(NOTEBOOKS) not in sys.path:
sys.path.insert(0, str(NOTEBOOKS))

import _taxonomy as taxonomy
taxonomy = pytest.importorskip(
"_taxonomy",
reason="notebook helpers are optional and are not included in package CI",
)


@pytest.mark.parametrize(
Expand Down
Loading