Skip to content

Commit

Permalink
Update pytests (#207)
Browse files Browse the repository at this point in the history
* Update pytests based on latest data

Remove 2.7 test environment

2.7 has been removed since June 19
  • Loading branch information
zhx828 authored Nov 1, 2023
1 parent 2bee6c8 commit e5ef4c2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
strategy:
matrix:
os: [ ubuntu-latest, macos-latest ]
python-version: [ '2.7','3.7','3.8','3.9','3.10','3.11' ]
python-version: [ '3.7','3.8','3.9','3.10','3.11' ]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
Expand All @@ -58,7 +58,7 @@ jobs:
runs-on: windows-latest
strategy:
matrix:
python-version: [ '2.7','3.7','3.8','3.9','3.10','3.11' ]
python-version: [ '3.7','3.8','3.9','3.10','3.11' ]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
Expand Down
4 changes: 2 additions & 2 deletions test_Annotation.py
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ def test_cna():
assert len(annotation) == NUMBER_OF_ANNOTATION_COLUMNS
assert annotation[MUTATION_EFFECT_INDEX] == 'Gain-of-function'
assert annotation[ONCOGENIC_INDEX] == 'Oncogenic'
assert annotation[HIGHEST_LEVEL_INDEX] == 'LEVEL_2'
assert annotation[HIGHEST_LEVEL_INDEX] == 'LEVEL_1'

annotation = annotations[3]
assert len(annotation) == NUMBER_OF_ANNOTATION_COLUMNS
Expand All @@ -304,7 +304,7 @@ def check_brca2_s1882_without_cancertype(annotation):
assert annotation[MUTATION_EFFECT_INDEX] == 'Likely Loss-of-function'
assert annotation[ONCOGENIC_INDEX] == 'Likely Oncogenic'
assert annotation[HIGHEST_LEVEL_INDEX] == 'LEVEL_1'
assert annotation[LEVEL_1_INDEX] == 'Olaparib,Olaparib+Bevacizumab,Rucaparib,Niraparib'
assert annotation[LEVEL_1_INDEX] == 'Olaparib,Olaparib+Bevacizumab,Rucaparib,Olaparib+Abiraterone+Prednisone,Niraparib,Olaparib+Abiraterone+Prednisolone,Talazoparib+Enzalutamide'
assert annotation[LEVEL_2_INDEX] == 'Olaparib,Rucaparib,Niraparib'
assert annotation[LEVEL_3A_INDEX] == 'Olaparib,Talazoparib'

Expand Down

0 comments on commit e5ef4c2

Please sign in to comment.