We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e71474f commit fd10930Copy full SHA for fd10930
1 file changed
tests/test_packageurl.py
@@ -374,3 +374,17 @@ def test_encoding_stuff_with_colons_correctly() -> None:
374
p.to_string()
375
== "pkg:nuget/an:odd:space/libiconv:%20character%20set%20conversion%20library@1.9?package-id=e11a609df352e292"
376
)
377
+
378
379
+def test_no_encoding_to_string():
380
+ p = PackageURL(
381
+ type="nuget",
382
+ namespace="an:odd:space",
383
+ name="libiconv: character set conversion library",
384
+ version="1.9",
385
+ qualifiers={"package-id": "e11a609df352e292"},
386
+ )
387
+ assert (
388
+ p.to_string(encode=False)
389
+ == "pkg:nuget/an:odd:space/libiconv: character set conversion library@1.9?package-id=e11a609df352e292"
390
0 commit comments