Skip to content

Commit

Permalink
fix: fix compatible versions header
Browse files Browse the repository at this point in the history
  • Loading branch information
paulmueller committed Jan 17, 2024
1 parent 19f59b2 commit 433854e
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 10 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
0.9.2
- fix: fix compatible versions header
0.9.1
- enh: set up beaker session cookies with validate_key
- update compatible versions
Expand Down
2 changes: 1 addition & 1 deletion dcor_control/resources/compatible_versions.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ckan ckanext.dc_log_view ckanext.dc_serve ckanext.dc_view ckanext.dcor_depot ckanext.dcor_schemas ckanext.dcor_theme dcor_shared
ckan ckanext-dc_log_view ckanext-dc_serve ckanext-dc_view ckanext-dcor_depot ckanext-dcor_schemas ckanext-dcor_theme dcor_shared
2.10.3 0.3.2 0.14.0 0.8.1 0.13.7 0.18.10 0.7.6 0.5.5
2.10.1 0.3.2 0.14.0 0.8.1 0.13.7 0.18.9 0.7.6 0.5.5
2.10.1 0.3.2 0.13.11 0.8.0 0.13.6 0.18.9 0.7.6 0.5.4
Expand Down
18 changes: 9 additions & 9 deletions tests/test_update.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
@pytest.mark.parametrize("name,ckan_version,version",
[
# latest version always returns None
("ckanext.dc_log_view", None, None),
("ckanext.dc_log_view", "2.9.0", "0.2.2"),
("ckanext-dc_log_view", None, None),
("ckanext-dc_log_view", "2.9.0", "0.2.2"),
])
def test_get_max_compatible_version(name, ckan_version, version):
assert update.get_max_compatible_version(
Expand All @@ -18,7 +18,7 @@ def test_get_max_compatible_version(name, ckan_version, version):

def test_get_max_compatible_version_invalid():
with pytest.raises(IndexError, match="Could not find current CKAN versio"):
update.get_max_compatible_version(name="ckanext.dc_log_view",
update.get_max_compatible_version(name="ckanext-dc_log_view",
ckan_version="1.2")


Expand All @@ -37,12 +37,12 @@ def test_parse_compatible_versions():
# 2.10.1 0.3.2 0.14.0 0.8.1 0.13.7 0.18.9 0.7.6 0.5.5
dict_exp = {
'ckan': '2.10.1',
'ckanext.dc_log_view': '0.3.2',
'ckanext.dc_serve': '0.14.0',
'ckanext.dc_view': '0.8.1',
'ckanext.dcor_depot': '0.13.7',
'ckanext.dcor_schemas': '0.18.9',
'ckanext.dcor_theme': '0.7.6',
'ckanext-dc_log_view': '0.3.2',
'ckanext-dc_serve': '0.14.0',
'ckanext-dc_view': '0.8.1',
'ckanext-dcor_depot': '0.13.7',
'ckanext-dcor_schemas': '0.18.9',
'ckanext-dcor_theme': '0.7.6',
'dcor_shared': '0.5.5'}
assert dict_exp in data

Expand Down

0 comments on commit 433854e

Please sign in to comment.