Skip to content

Commit

Permalink
Remove ckan 2.7 test
Browse files Browse the repository at this point in the history
  • Loading branch information
jguo144 committed Mar 7, 2024
1 parent 449f372 commit 6bf5749
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
10 changes: 2 additions & 8 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
test:
strategy:
matrix:
ckan-version: [2.9, 2.8, 2.7]
ckan-version: [2.9]
fail-fast: false

name: CKAN ${{ matrix.ckan-version }}
Expand Down Expand Up @@ -56,18 +56,12 @@ jobs:
run: |
pip install -r requirements.txt -r dev-requirements.txt -e .
- name: Setup extension (CKAN >= 2.9)
- name: Setup extension (CKAN == 2.9)
if: ${{ matrix.ckan-version == '2.9' }}
run: |
ckan -c git_action_test.ini db init
ckan -c git_action_test.ini subscribe initdb
- name: Setup extension (CKAN 2.7)
if: ${{ matrix.ckan-version != '2.9' }}
run: |
paster --plugin=ckan db init -c git_action_test.ini
paster --plugin=ckanext-subscribe subscribe initdb -c git_action_test.ini
- name: Run tests
run: |
pytest --ckan-ini=git_action_test.ini --cov=ckanext.subscribe --cov-fail-under=${CODE_COVERAGE_THRESHOLD_REQUIRED} --disable-warnings ckanext/subscribe/tests
2 changes: 1 addition & 1 deletion ckanext/subscribe/tests/test_notification_email.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def test_basic(self, mail_recipient):
body = mail_recipient.call_args[1]['body']
print(body)
assert dataset['title'] in body
assert'{}/dataset/{}'.format(config.get('ckan.site_url'), dataset['id']) in body
assert '{}/dataset/{}'.format(config.get('ckan.site_url'), dataset['id']) in body
assert 'new dataset' in body
body = mail_recipient.call_args[1]['body_html']
print(body)
Expand Down

0 comments on commit 6bf5749

Please sign in to comment.