Skip to content

Commit 9b7b489

Browse files
committed
fix tests
Signed-off-by: Bennati, Stefano <stefano.bennati@here.com>
1 parent c21d263 commit 9b7b489

8 files changed

+160
-160
lines changed

tests/data/pinned-pdt-requirements.txt-expected.json

Lines changed: 36 additions & 36 deletions
Large diffs are not rendered by default.

tests/data/pinned-requirements.txt-expected.json

Lines changed: 38 additions & 38 deletions
Large diffs are not rendered by default.

tests/data/single-url-except-simple-expected.json

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -632,12 +632,12 @@
632632
"type": "pypi",
633633
"namespace": null,
634634
"name": "markupsafe",
635-
"version": "2.1.1",
635+
"version": "2.1.2",
636636
"qualifiers": {},
637637
"subpath": null,
638638
"primary_language": "Python",
639639
"description": "Safely add untrusted strings to HTML/XML markup.\nMarkupSafe\n==========\n\nMarkupSafe implements a text object that escapes characters so it is\nsafe to use in HTML and XML. Characters that have special meanings are\nreplaced so that they display as the actual characters. This mitigates\ninjection attacks, meaning untrusted user input can safely be displayed\non a page.\n\n\nInstalling\n----------\n\nInstall and update using `pip`_:\n\n.. code-block:: text\n\n pip install -U MarkupSafe\n\n.. _pip: https://pip.pypa.io/en/stable/getting-started/\n\n\nExamples\n--------\n\n.. code-block:: pycon\n\n >>> from markupsafe import Markup, escape\n\n >>> # escape replaces special characters and wraps in Markup\n >>> escape(\"<script>alert(document.cookie);</script>\")\n Markup('&lt;script&gt;alert(document.cookie);&lt;/script&gt;')\n\n >>> # wrap in Markup to mark text \"safe\" and prevent escaping\n >>> Markup(\"<strong>Hello</strong>\")\n Markup('<strong>hello</strong>')\n\n >>> escape(Markup(\"<strong>Hello</strong>\"))\n Markup('<strong>hello</strong>')\n\n >>> # Markup is a str subclass\n >>> # methods and operators escape their arguments\n >>> template = Markup(\"Hello <em>{name}</em>\")\n >>> template.format(name='\"World\"')\n Markup('Hello <em>&#34;World&#34;</em>')\n\n\nDonate\n------\n\nThe Pallets organization develops and supports MarkupSafe and other\npopular packages. In order to grow the community of contributors and\nusers, and allow the maintainers to devote more time to the projects,\n`please donate today`_.\n\n.. _please donate today: https://palletsprojects.com/donate\n\n\nLinks\n-----\n\n- Documentation: https://markupsafe.palletsprojects.com/\n- Changes: https://markupsafe.palletsprojects.com/changes/\n- PyPI Releases: https://pypi.org/project/MarkupSafe/\n- Source Code: https://github.com/pallets/markupsafe/\n- Issue Tracker: https://github.com/pallets/markupsafe/issues/\n- Website: https://palletsprojects.com/p/markupsafe/\n- Twitter: https://twitter.com/PalletsTeam\n- Chat: https://discord.gg/pallets",
640-
"release_date": "2022-03-15T13:22:49",
640+
"release_date": "2023-01-17T18:23:38",
641641
"parties": [
642642
{
643643
"type": "person",
@@ -664,11 +664,11 @@
664664
"Topic :: Text Processing :: Markup :: HTML"
665665
],
666666
"homepage_url": "https://palletsprojects.com/p/markupsafe/",
667-
"download_url": "https://files.pythonhosted.org/packages/fd/f4/524d2e8f5a3727cf309c2b7df7c732038375322df1376c9e9ef3aa92fcaf/MarkupSafe-2.1.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
668-
"size": 25883,
667+
"download_url": "https://files.pythonhosted.org/packages/9d/80/8320f182d06a9b289b1a9f266f593feb91d3781c7e104bbe09e0c4c11439/MarkupSafe-2.1.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
668+
"size": 25880,
669669
"sha1": null,
670-
"md5": "e39aa307fb183aacd8bcdb81f5a1ca69",
671-
"sha256": "4b9fe39a2ccc108a4accc2676e77da025ce383c108593d65cc909add5c3bd601",
670+
"md5": "28ade62d7e197254daf3e7f499bb9c99",
671+
"sha256": "4cf06cdc1dda95223e9d2d3c58d3b178aa5dacb35ee7e3bbac10e4e1faacb419",
672672
"sha512": null,
673673
"bug_tracking_url": "https://github.com/pallets/markupsafe/issues/",
674674
"code_view_url": "https://github.com/pallets/markupsafe/",
@@ -688,20 +688,20 @@
688688
"dependencies": [],
689689
"repository_homepage_url": null,
690690
"repository_download_url": null,
691-
"api_data_url": "https://pypi.org/pypi/markupsafe/2.1.1/json",
691+
"api_data_url": "https://pypi.org/pypi/markupsafe/2.1.2/json",
692692
"datasource_id": null,
693-
"purl": "pkg:pypi/markupsafe@2.1.1"
693+
"purl": "pkg:pypi/markupsafe@2.1.2"
694694
},
695695
{
696696
"type": "pypi",
697697
"namespace": null,
698698
"name": "markupsafe",
699-
"version": "2.1.1",
699+
"version": "2.1.2",
700700
"qualifiers": {},
701701
"subpath": null,
702702
"primary_language": "Python",
703703
"description": "Safely add untrusted strings to HTML/XML markup.\nMarkupSafe\n==========\n\nMarkupSafe implements a text object that escapes characters so it is\nsafe to use in HTML and XML. Characters that have special meanings are\nreplaced so that they display as the actual characters. This mitigates\ninjection attacks, meaning untrusted user input can safely be displayed\non a page.\n\n\nInstalling\n----------\n\nInstall and update using `pip`_:\n\n.. code-block:: text\n\n pip install -U MarkupSafe\n\n.. _pip: https://pip.pypa.io/en/stable/getting-started/\n\n\nExamples\n--------\n\n.. code-block:: pycon\n\n >>> from markupsafe import Markup, escape\n\n >>> # escape replaces special characters and wraps in Markup\n >>> escape(\"<script>alert(document.cookie);</script>\")\n Markup('&lt;script&gt;alert(document.cookie);&lt;/script&gt;')\n\n >>> # wrap in Markup to mark text \"safe\" and prevent escaping\n >>> Markup(\"<strong>Hello</strong>\")\n Markup('<strong>hello</strong>')\n\n >>> escape(Markup(\"<strong>Hello</strong>\"))\n Markup('<strong>hello</strong>')\n\n >>> # Markup is a str subclass\n >>> # methods and operators escape their arguments\n >>> template = Markup(\"Hello <em>{name}</em>\")\n >>> template.format(name='\"World\"')\n Markup('Hello <em>&#34;World&#34;</em>')\n\n\nDonate\n------\n\nThe Pallets organization develops and supports MarkupSafe and other\npopular packages. In order to grow the community of contributors and\nusers, and allow the maintainers to devote more time to the projects,\n`please donate today`_.\n\n.. _please donate today: https://palletsprojects.com/donate\n\n\nLinks\n-----\n\n- Documentation: https://markupsafe.palletsprojects.com/\n- Changes: https://markupsafe.palletsprojects.com/changes/\n- PyPI Releases: https://pypi.org/project/MarkupSafe/\n- Source Code: https://github.com/pallets/markupsafe/\n- Issue Tracker: https://github.com/pallets/markupsafe/issues/\n- Website: https://palletsprojects.com/p/markupsafe/\n- Twitter: https://twitter.com/PalletsTeam\n- Chat: https://discord.gg/pallets",
704-
"release_date": "2022-03-15T13:23:27",
704+
"release_date": "2023-01-17T18:23:59",
705705
"parties": [
706706
{
707707
"type": "person",
@@ -728,11 +728,11 @@
728728
"Topic :: Text Processing :: Markup :: HTML"
729729
],
730730
"homepage_url": "https://palletsprojects.com/p/markupsafe/",
731-
"download_url": "https://files.pythonhosted.org/packages/1d/97/2288fe498044284f39ab8950703e88abbac2abbdf65524d576157af70556/MarkupSafe-2.1.1.tar.gz",
732-
"size": 18668,
731+
"download_url": "https://files.pythonhosted.org/packages/95/7e/68018b70268fb4a2a605e2be44ab7b4dd7ce7808adae6c5ef32e34f4b55a/MarkupSafe-2.1.2.tar.gz",
732+
"size": 19080,
733733
"sha1": null,
734-
"md5": "9809f9fdd98bc835b0c21aa8f79cbf30",
735-
"sha256": "7f91197cc9e48f989d12e4e6fbc46495c446636dfc81b9ccf50bb0ec74b91d4b",
734+
"md5": "02f337b98aef11bd0fee9c5ae860173b",
735+
"sha256": "abcabc8c2b26036d62d4c746381a6f7cf60aafcc653198ad678306986b09450d",
736736
"sha512": null,
737737
"bug_tracking_url": "https://github.com/pallets/markupsafe/issues/",
738738
"code_view_url": "https://github.com/pallets/markupsafe/",
@@ -752,9 +752,9 @@
752752
"dependencies": [],
753753
"repository_homepage_url": null,
754754
"repository_download_url": null,
755-
"api_data_url": "https://pypi.org/pypi/markupsafe/2.1.1/json",
755+
"api_data_url": "https://pypi.org/pypi/markupsafe/2.1.2/json",
756756
"datasource_id": null,
757-
"purl": "pkg:pypi/markupsafe@2.1.1"
757+
"purl": "pkg:pypi/markupsafe@2.1.2"
758758
},
759759
{
760760
"type": "pypi",
@@ -1025,22 +1025,22 @@
10251025
{
10261026
"package": "pkg:pypi/jinja2@3.1.2",
10271027
"dependencies": [
1028-
"pkg:pypi/markupsafe@2.1.1"
1028+
"pkg:pypi/markupsafe@2.1.2"
10291029
]
10301030
},
10311031
{
1032-
"package": "pkg:pypi/markupsafe@2.1.1",
1032+
"package": "pkg:pypi/markupsafe@2.1.2",
10331033
"dependencies": []
10341034
},
10351035
{
10361036
"package": "pkg:pypi/werkzeug@2.2.2",
10371037
"dependencies": [
1038-
"pkg:pypi/markupsafe@2.1.1"
1038+
"pkg:pypi/markupsafe@2.1.2"
10391039
]
10401040
},
10411041
{
10421042
"package": "pkg:pypi/zipp@3.11.0",
10431043
"dependencies": []
10441044
}
10451045
]
1046-
}
1046+
}

tests/data/test-api-expected.json

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -511,12 +511,12 @@
511511
"type": "pypi",
512512
"namespace": null,
513513
"name": "markupsafe",
514-
"version": "2.1.1",
514+
"version": "2.1.2",
515515
"qualifiers": {},
516516
"subpath": null,
517517
"primary_language": "Python",
518518
"description": "Safely add untrusted strings to HTML/XML markup.\nMarkupSafe\n==========\n\nMarkupSafe implements a text object that escapes characters so it is\nsafe to use in HTML and XML. Characters that have special meanings are\nreplaced so that they display as the actual characters. This mitigates\ninjection attacks, meaning untrusted user input can safely be displayed\non a page.\n\n\nInstalling\n----------\n\nInstall and update using `pip`_:\n\n.. code-block:: text\n\n pip install -U MarkupSafe\n\n.. _pip: https://pip.pypa.io/en/stable/getting-started/\n\n\nExamples\n--------\n\n.. code-block:: pycon\n\n >>> from markupsafe import Markup, escape\n\n >>> # escape replaces special characters and wraps in Markup\n >>> escape(\"<script>alert(document.cookie);</script>\")\n Markup('&lt;script&gt;alert(document.cookie);&lt;/script&gt;')\n\n >>> # wrap in Markup to mark text \"safe\" and prevent escaping\n >>> Markup(\"<strong>Hello</strong>\")\n Markup('<strong>hello</strong>')\n\n >>> escape(Markup(\"<strong>Hello</strong>\"))\n Markup('<strong>hello</strong>')\n\n >>> # Markup is a str subclass\n >>> # methods and operators escape their arguments\n >>> template = Markup(\"Hello <em>{name}</em>\")\n >>> template.format(name='\"World\"')\n Markup('Hello <em>&#34;World&#34;</em>')\n\n\nDonate\n------\n\nThe Pallets organization develops and supports MarkupSafe and other\npopular packages. In order to grow the community of contributors and\nusers, and allow the maintainers to devote more time to the projects,\n`please donate today`_.\n\n.. _please donate today: https://palletsprojects.com/donate\n\n\nLinks\n-----\n\n- Documentation: https://markupsafe.palletsprojects.com/\n- Changes: https://markupsafe.palletsprojects.com/changes/\n- PyPI Releases: https://pypi.org/project/MarkupSafe/\n- Source Code: https://github.com/pallets/markupsafe/\n- Issue Tracker: https://github.com/pallets/markupsafe/issues/\n- Website: https://palletsprojects.com/p/markupsafe/\n- Twitter: https://twitter.com/PalletsTeam\n- Chat: https://discord.gg/pallets",
519-
"release_date": "2022-03-15T13:22:12",
519+
"release_date": "2023-01-17T18:22:57",
520520
"parties": [
521521
{
522522
"type": "person",
@@ -543,11 +543,11 @@
543543
"Topic :: Text Processing :: Markup :: HTML"
544544
],
545545
"homepage_url": "https://palletsprojects.com/p/markupsafe/",
546-
"download_url": "https://files.pythonhosted.org/packages/9e/82/2e089c6f34e77c073aa5a67040d368aac0dfb9b8ccbb46d381452c26fc33/MarkupSafe-2.1.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
547-
"size": 25596,
546+
"download_url": "https://files.pythonhosted.org/packages/3d/66/2f636ba803fd6eb4cee7b3106ae02538d1e84a7fb7f4f8775c6528a87d31/MarkupSafe-2.1.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
547+
"size": 25592,
548548
"sha1": null,
549-
"md5": "b4b01daec17d204372a2ff5be052bfe5",
550-
"sha256": "10c1bfff05d95783da83491be968e8fe789263689c02724e0c691933c52994f5",
549+
"md5": "54ac715bc0b860519f985d92142fefee",
550+
"sha256": "28057e985dace2f478e042eaa15606c7efccb700797660629da387eb289b9323",
551551
"sha512": null,
552552
"bug_tracking_url": "https://github.com/pallets/markupsafe/issues/",
553553
"code_view_url": "https://github.com/pallets/markupsafe/",
@@ -567,20 +567,20 @@
567567
"dependencies": [],
568568
"repository_homepage_url": null,
569569
"repository_download_url": null,
570-
"api_data_url": "https://pypi.org/pypi/markupsafe/2.1.1/json",
570+
"api_data_url": "https://pypi.org/pypi/markupsafe/2.1.2/json",
571571
"datasource_id": null,
572-
"purl": "pkg:pypi/markupsafe@2.1.1"
572+
"purl": "pkg:pypi/markupsafe@2.1.2"
573573
},
574574
{
575575
"type": "pypi",
576576
"namespace": null,
577577
"name": "markupsafe",
578-
"version": "2.1.1",
578+
"version": "2.1.2",
579579
"qualifiers": {},
580580
"subpath": null,
581581
"primary_language": "Python",
582582
"description": "Safely add untrusted strings to HTML/XML markup.\nMarkupSafe\n==========\n\nMarkupSafe implements a text object that escapes characters so it is\nsafe to use in HTML and XML. Characters that have special meanings are\nreplaced so that they display as the actual characters. This mitigates\ninjection attacks, meaning untrusted user input can safely be displayed\non a page.\n\n\nInstalling\n----------\n\nInstall and update using `pip`_:\n\n.. code-block:: text\n\n pip install -U MarkupSafe\n\n.. _pip: https://pip.pypa.io/en/stable/getting-started/\n\n\nExamples\n--------\n\n.. code-block:: pycon\n\n >>> from markupsafe import Markup, escape\n\n >>> # escape replaces special characters and wraps in Markup\n >>> escape(\"<script>alert(document.cookie);</script>\")\n Markup('&lt;script&gt;alert(document.cookie);&lt;/script&gt;')\n\n >>> # wrap in Markup to mark text \"safe\" and prevent escaping\n >>> Markup(\"<strong>Hello</strong>\")\n Markup('<strong>hello</strong>')\n\n >>> escape(Markup(\"<strong>Hello</strong>\"))\n Markup('<strong>hello</strong>')\n\n >>> # Markup is a str subclass\n >>> # methods and operators escape their arguments\n >>> template = Markup(\"Hello <em>{name}</em>\")\n >>> template.format(name='\"World\"')\n Markup('Hello <em>&#34;World&#34;</em>')\n\n\nDonate\n------\n\nThe Pallets organization develops and supports MarkupSafe and other\npopular packages. In order to grow the community of contributors and\nusers, and allow the maintainers to devote more time to the projects,\n`please donate today`_.\n\n.. _please donate today: https://palletsprojects.com/donate\n\n\nLinks\n-----\n\n- Documentation: https://markupsafe.palletsprojects.com/\n- Changes: https://markupsafe.palletsprojects.com/changes/\n- PyPI Releases: https://pypi.org/project/MarkupSafe/\n- Source Code: https://github.com/pallets/markupsafe/\n- Issue Tracker: https://github.com/pallets/markupsafe/issues/\n- Website: https://palletsprojects.com/p/markupsafe/\n- Twitter: https://twitter.com/PalletsTeam\n- Chat: https://discord.gg/pallets",
583-
"release_date": "2022-03-15T13:23:27",
583+
"release_date": "2023-01-17T18:23:59",
584584
"parties": [
585585
{
586586
"type": "person",
@@ -607,11 +607,11 @@
607607
"Topic :: Text Processing :: Markup :: HTML"
608608
],
609609
"homepage_url": "https://palletsprojects.com/p/markupsafe/",
610-
"download_url": "https://files.pythonhosted.org/packages/1d/97/2288fe498044284f39ab8950703e88abbac2abbdf65524d576157af70556/MarkupSafe-2.1.1.tar.gz",
611-
"size": 18668,
610+
"download_url": "https://files.pythonhosted.org/packages/95/7e/68018b70268fb4a2a605e2be44ab7b4dd7ce7808adae6c5ef32e34f4b55a/MarkupSafe-2.1.2.tar.gz",
611+
"size": 19080,
612612
"sha1": null,
613-
"md5": "9809f9fdd98bc835b0c21aa8f79cbf30",
614-
"sha256": "7f91197cc9e48f989d12e4e6fbc46495c446636dfc81b9ccf50bb0ec74b91d4b",
613+
"md5": "02f337b98aef11bd0fee9c5ae860173b",
614+
"sha256": "abcabc8c2b26036d62d4c746381a6f7cf60aafcc653198ad678306986b09450d",
615615
"sha512": null,
616616
"bug_tracking_url": "https://github.com/pallets/markupsafe/issues/",
617617
"code_view_url": "https://github.com/pallets/markupsafe/",
@@ -631,9 +631,9 @@
631631
"dependencies": [],
632632
"repository_homepage_url": null,
633633
"repository_download_url": null,
634-
"api_data_url": "https://pypi.org/pypi/markupsafe/2.1.1/json",
634+
"api_data_url": "https://pypi.org/pypi/markupsafe/2.1.2/json",
635635
"datasource_id": null,
636-
"purl": "pkg:pypi/markupsafe@2.1.1"
636+
"purl": "pkg:pypi/markupsafe@2.1.2"
637637
},
638638
{
639639
"type": "pypi",
@@ -791,18 +791,18 @@
791791
{
792792
"package": "pkg:pypi/jinja2@3.1.2",
793793
"dependencies": [
794-
"pkg:pypi/markupsafe@2.1.1"
794+
"pkg:pypi/markupsafe@2.1.2"
795795
]
796796
},
797797
{
798-
"package": "pkg:pypi/markupsafe@2.1.1",
798+
"package": "pkg:pypi/markupsafe@2.1.2",
799799
"dependencies": []
800800
},
801801
{
802802
"package": "pkg:pypi/werkzeug@2.2.2",
803803
"dependencies": [
804-
"pkg:pypi/markupsafe@2.1.1"
804+
"pkg:pypi/markupsafe@2.1.2"
805805
]
806806
}
807807
]
808-
}
808+
}

0 commit comments

Comments
 (0)