@@ -17,7 +17,8 @@ def test_get_all_datasets(mocker: MockerFixture) -> None:
1717 source_url = "https://test-dataset.json" ,
1818 publisher_name = "test_publisher" ,
1919 license_url = "https://license.com" ,
20- license_name = "License" ,
20+ license_title = "License" ,
21+ license_title_short = "L" ,
2122 json_url = "https://downloads/test_dataset.json" ,
2223 csv_url = "https://downloads/test_dataset.csv" ,
2324 xlsx_url = "https://downloads/test_dataset.xlsx" ,
@@ -31,7 +32,7 @@ def test_get_all_datasets(mocker: MockerFixture) -> None:
3132 loaded_at = now ,
3233 source_url = "https://test-dataset.json" ,
3334 publisher = Publisher (name = "test_publisher" ),
34- license = License (name = "License" , url = "https://license.com" ),
35+ license = License (title = "License" , title_short = "L " , url = "https://license.com" ),
3536 downloads = [
3637 Download (format = "json" , url = "https://downloads/test_dataset.json" ),
3738 Download (format = "csv" , url = "https://downloads/test_dataset.csv" ),
@@ -51,7 +52,8 @@ def test_get_all_datasets_missing_download_formats(mocker: MockerFixture) -> Non
5152 source_url = "https://test-dataset.json" ,
5253 publisher_name = "test_publisher" ,
5354 license_url = "https://license.com" ,
54- license_name = "License" ,
55+ license_title = "License" ,
56+ license_title_short = "L" ,
5557 json_url = "https://downloads/test_dataset.json" ,
5658 csv_url = None ,
5759 xlsx_url = None ,
@@ -65,7 +67,7 @@ def test_get_all_datasets_missing_download_formats(mocker: MockerFixture) -> Non
6567 loaded_at = now ,
6668 source_url = "https://test-dataset.json" ,
6769 publisher = Publisher (name = "test_publisher" ),
68- license = License (name = "License" , url = "https://license.com" ),
70+ license = License (title = "License" , title_short = "L " , url = "https://license.com" ),
6971 downloads = [
7072 Download (format = "json" , url = "https://downloads/test_dataset.json" ),
7173 ],
0 commit comments