@@ -17,7 +17,8 @@ def test_get_all_datasets(mocker: MockerFixture) -> None:
17
17
source_url = "https://test-dataset.json" ,
18
18
publisher_name = "test_publisher" ,
19
19
license_url = "https://license.com" ,
20
- license_name = "License" ,
20
+ license_title = "License" ,
21
+ license_title_short = "L" ,
21
22
json_url = "https://downloads/test_dataset.json" ,
22
23
csv_url = "https://downloads/test_dataset.csv" ,
23
24
xlsx_url = "https://downloads/test_dataset.xlsx" ,
@@ -31,7 +32,7 @@ def test_get_all_datasets(mocker: MockerFixture) -> None:
31
32
loaded_at = now ,
32
33
source_url = "https://test-dataset.json" ,
33
34
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" ),
35
36
downloads = [
36
37
Download (format = "json" , url = "https://downloads/test_dataset.json" ),
37
38
Download (format = "csv" , url = "https://downloads/test_dataset.csv" ),
@@ -51,7 +52,8 @@ def test_get_all_datasets_missing_download_formats(mocker: MockerFixture) -> Non
51
52
source_url = "https://test-dataset.json" ,
52
53
publisher_name = "test_publisher" ,
53
54
license_url = "https://license.com" ,
54
- license_name = "License" ,
55
+ license_title = "License" ,
56
+ license_title_short = "L" ,
55
57
json_url = "https://downloads/test_dataset.json" ,
56
58
csv_url = None ,
57
59
xlsx_url = None ,
@@ -65,7 +67,7 @@ def test_get_all_datasets_missing_download_formats(mocker: MockerFixture) -> Non
65
67
loaded_at = now ,
66
68
source_url = "https://test-dataset.json" ,
67
69
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" ),
69
71
downloads = [
70
72
Download (format = "json" , url = "https://downloads/test_dataset.json" ),
71
73
],
0 commit comments