Verified Commit 64bd6e25 authored by David Runge's avatar David Runge
Browse files

Use required license attribute in tests

tests/test_{convert,files}.py:
Ensure that instantiation of models using the `License` model are done
correctly.
parent 9fa1d0e0
...@@ -119,7 +119,7 @@ def test__desc_data_to_dict( ...@@ -119,7 +119,7 @@ def test__desc_data_to_dict(
desc="foo", desc="foo",
filename="foo", filename="foo",
isize=1, isize=1,
licenses=["foo"], license=["foo"],
md5sum="foo", md5sum="foo",
name="foo", name="foo",
packager="foo", packager="foo",
...@@ -139,7 +139,7 @@ def test__desc_data_to_dict( ...@@ -139,7 +139,7 @@ def test__desc_data_to_dict(
desc="foo", desc="foo",
filename="foo", filename="foo",
isize=1, isize=1,
licenses=["foo"], license=["foo"],
md5sum="foo", md5sum="foo",
name="foo", name="foo",
packager="foo", packager="foo",
...@@ -182,7 +182,7 @@ def test_repodbfile_render_desc_template() -> None: ...@@ -182,7 +182,7 @@ def test_repodbfile_render_desc_template() -> None:
desc="foo", desc="foo",
filename="foo", filename="foo",
isize=1, isize=1,
licenses=["foo"], license=["foo"],
md5sum="foo", md5sum="foo",
name="foo", name="foo",
packager="foo", packager="foo",
......
...@@ -148,7 +148,7 @@ def test__write_db_file(empty_dir: Path) -> None: ...@@ -148,7 +148,7 @@ def test__write_db_file(empty_dir: Path) -> None:
filename="foo", filename="foo",
files=["foo", "bar"], files=["foo", "bar"],
isize=1, isize=1,
licenses=["foo"], license=["foo"],
md5sum="foo", md5sum="foo",
name="foo", name="foo",
pgpsig="foo", pgpsig="foo",
...@@ -173,7 +173,7 @@ def test__write_db_file(empty_dir: Path) -> None: ...@@ -173,7 +173,7 @@ def test__write_db_file(empty_dir: Path) -> None:
filename="foo", filename="foo",
files=["foo", "bar"], files=["foo", "bar"],
isize=1, isize=1,
licenses=["foo"], license=["foo"],
md5sum="foo", md5sum="foo",
name="foo", name="foo",
pgpsig="foo", pgpsig="foo",
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment