Skip to content

Commit f50cb66

Browse files
committed
Change tests to match
1 parent 1a56202 commit f50cb66

File tree

6 files changed

+10
-10
lines changed

6 files changed

+10
-10
lines changed

dowsing/flit.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def get_metadata(self) -> Distribution:
5757
setattr(d, k2, v)
5858

5959
for k, v in metadata.get("urls", {}).items():
60-
d.project_urls[k] = v
60+
d.project_urls.append(f"{k}={v}")
6161

6262
for k, v in flit.get("scripts", {}).items():
6363
d.entry_points[k] = v

dowsing/pep621.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def get_pep621_metadata(self) -> Distribution:
4242
elif k == "optional-dependencies":
4343
pass
4444
elif k == "urls":
45-
d.project_urls.extend(v)
45+
d.project_urls.extend([f"{x}={y}" for x, y in v.items()])
4646

4747
k2 = k.replace("-", "_")
4848
if k2 in d:

dowsing/tests/flit.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ def test_normal(self) -> None:
6565
"packages": ["foo", "foo.tests"],
6666
"packages_dict": {"foo": "foo", "foo.tests": "foo/tests"},
6767
"requires_dist": ["abc", "def"],
68-
"project_urls": {"Foo": "https://"},
68+
"project_urls": ["Foo=https://"],
6969
},
7070
md.asdict(),
7171
)
@@ -106,7 +106,7 @@ def test_pep621(self) -> None:
106106
"packages": ["foo", "foo.tests"],
107107
"packages_dict": {"foo": "foo", "foo.tests": "foo/tests"},
108108
"requires_dist": ["abc", "def"],
109-
"project_urls": {"Foo": "https://"},
109+
"project_urls": ["Foo=https://"],
110110
},
111111
md.asdict(),
112112
)

dowsing/tests/pep621.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def test_normal(self) -> None:
5151
"packages": ["foo", "foo.tests"],
5252
"packages_dict": {"foo": "foo", "foo.tests": "foo/tests"},
5353
"requires_dist": ["abc", "def"],
54-
"project_urls": {"Foo": "https://"},
54+
"project_urls": ["Foo=https://"],
5555
},
5656
md.asdict(),
5757
)

dowsing/tests/poetry.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,10 @@ def test_basic(self) -> None:
4141
self.assertEqual("1.5.2", md.version)
4242
self.assertEqual("BSD-3-Clause", md.license)
4343
self.assertEqual(
44-
{
45-
"homepage": "http://example.com",
46-
"Bug Tracker": "https://github.com/python-poetry/poetry/issues",
47-
},
44+
[
45+
"homepage=http://example.com",
46+
"Bug Tracker=https://github.com/python-poetry/poetry/issues",
47+
],
4848
md.project_urls,
4949
)
5050
self.assertEqual(["Not a real classifier"], md.classifiers)

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,11 @@ dev =
3434
twine==5.1.1
3535
ufmt==2.8.0
3636
usort==1.0.8.post1
37-
volatile==2.1.0
3837
wheel==0.45.1
3938
honesty==0.3.0b1
4039
test =
4140
coverage >= 6
41+
volatile==2.1.0
4242

4343
[check]
4444
metadata = true

0 commit comments

Comments
 (0)