Skip to content

Commit

Permalink
Fix test data OrderedDict key order #365
Browse files Browse the repository at this point in the history
Reference: #365

Signed-off-by: John M. Horan <[email protected]>
  • Loading branch information
johnmhoran committed Jun 13, 2024
1 parent 22839ad commit f31dc0e
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 36 deletions.
48 changes: 24 additions & 24 deletions purldb-toolkit/tests/test_purlcli.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,9 @@ def test_metadata_details(self, mock_collect_metadata):
("version", None),
("qualifiers", OrderedDict()),
("subpath", None),
("repository_homepage_url", None),
("repository_download_url", None),
("api_data_url", None),
("primary_language", None),
("description", None),
("release_date", None),
Expand All @@ -91,9 +94,6 @@ def test_metadata_details(self, mock_collect_metadata):
("dependencies", []),
("contains_source_code", None),
("source_packages", []),
("repository_homepage_url", None),
("repository_download_url", None),
("api_data_url", None),
]
),
OrderedDict(
Expand All @@ -105,6 +105,9 @@ def test_metadata_details(self, mock_collect_metadata):
("version", "0.1.0"),
("qualifiers", OrderedDict()),
("subpath", None),
("repository_homepage_url", None),
("repository_download_url", None),
("api_data_url", None),
("primary_language", None),
("description", None),
("release_date", None),
Expand Down Expand Up @@ -132,9 +135,6 @@ def test_metadata_details(self, mock_collect_metadata):
("dependencies", []),
("contains_source_code", None),
("source_packages", []),
("repository_homepage_url", None),
("repository_download_url", None),
("api_data_url", None),
]
),
OrderedDict(
Expand All @@ -146,6 +146,9 @@ def test_metadata_details(self, mock_collect_metadata):
("version", "0.2.0"),
("qualifiers", OrderedDict()),
("subpath", None),
("repository_homepage_url", None),
("repository_download_url", None),
("api_data_url", None),
("primary_language", None),
("description", None),
("release_date", None),
Expand Down Expand Up @@ -173,9 +176,6 @@ def test_metadata_details(self, mock_collect_metadata):
("dependencies", []),
("contains_source_code", None),
("source_packages", []),
("repository_homepage_url", None),
("repository_download_url", None),
("api_data_url", None),
]
),
OrderedDict(
Expand All @@ -187,6 +187,9 @@ def test_metadata_details(self, mock_collect_metadata):
("version", "0.3.0"),
("qualifiers", OrderedDict()),
("subpath", None),
("repository_homepage_url", None),
("repository_download_url", None),
("api_data_url", None),
("primary_language", None),
("description", None),
("release_date", None),
Expand Down Expand Up @@ -214,9 +217,6 @@ def test_metadata_details(self, mock_collect_metadata):
("dependencies", []),
("contains_source_code", None),
("source_packages", []),
("repository_homepage_url", None),
("repository_download_url", None),
("api_data_url", None),
]
),
]
Expand Down Expand Up @@ -246,6 +246,9 @@ def test_metadata_details(self, mock_collect_metadata):
("version", None),
("qualifiers", OrderedDict()),
("subpath", None),
("repository_homepage_url", None),
("repository_download_url", None),
("api_data_url", None),
("primary_language", None),
("description", None),
("release_date", None),
Expand All @@ -270,9 +273,6 @@ def test_metadata_details(self, mock_collect_metadata):
("dependencies", []),
("contains_source_code", None),
("source_packages", []),
("repository_homepage_url", None),
("repository_download_url", None),
("api_data_url", None),
]
),
OrderedDict(
Expand All @@ -284,6 +284,9 @@ def test_metadata_details(self, mock_collect_metadata):
("version", "0.1.0"),
("qualifiers", OrderedDict()),
("subpath", None),
("repository_homepage_url", None),
("repository_download_url", None),
("api_data_url", None),
("primary_language", None),
("description", None),
("release_date", None),
Expand Down Expand Up @@ -311,9 +314,6 @@ def test_metadata_details(self, mock_collect_metadata):
("dependencies", []),
("contains_source_code", None),
("source_packages", []),
("repository_homepage_url", None),
("repository_download_url", None),
("api_data_url", None),
]
),
OrderedDict(
Expand All @@ -325,6 +325,9 @@ def test_metadata_details(self, mock_collect_metadata):
("version", "0.2.0"),
("qualifiers", OrderedDict()),
("subpath", None),
("repository_homepage_url", None),
("repository_download_url", None),
("api_data_url", None),
("primary_language", None),
("description", None),
("release_date", None),
Expand Down Expand Up @@ -352,9 +355,6 @@ def test_metadata_details(self, mock_collect_metadata):
("dependencies", []),
("contains_source_code", None),
("source_packages", []),
("repository_homepage_url", None),
("repository_download_url", None),
("api_data_url", None),
]
),
OrderedDict(
Expand All @@ -366,6 +366,9 @@ def test_metadata_details(self, mock_collect_metadata):
("version", "0.3.0"),
("qualifiers", OrderedDict()),
("subpath", None),
("repository_homepage_url", None),
("repository_download_url", None),
("api_data_url", None),
("primary_language", None),
("description", None),
("release_date", None),
Expand Down Expand Up @@ -393,9 +396,6 @@ def test_metadata_details(self, mock_collect_metadata):
("dependencies", []),
("contains_source_code", None),
("source_packages", []),
("repository_homepage_url", None),
("repository_download_url", None),
("api_data_url", None),
]
),
],
Expand Down
24 changes: 12 additions & 12 deletions purldb-toolkit/tests/test_purlcli_live.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,9 @@ def test_metadata_details(self):
("version", None),
("qualifiers", OrderedDict()),
("subpath", None),
("repository_homepage_url", None),
("repository_download_url", None),
("api_data_url", None),
("primary_language", None),
("description", None),
("release_date", None),
Expand All @@ -185,9 +188,6 @@ def test_metadata_details(self):
("dependencies", []),
("contains_source_code", None),
("source_packages", []),
("repository_homepage_url", None),
("repository_download_url", None),
("api_data_url", None),
]
),
OrderedDict(
Expand All @@ -199,6 +199,9 @@ def test_metadata_details(self):
("version", "0.1.0"),
("qualifiers", OrderedDict()),
("subpath", None),
("repository_homepage_url", None),
("repository_download_url", None),
("api_data_url", None),
("primary_language", None),
("description", None),
("release_date", None),
Expand Down Expand Up @@ -226,9 +229,6 @@ def test_metadata_details(self):
("dependencies", []),
("contains_source_code", None),
("source_packages", []),
("repository_homepage_url", None),
("repository_download_url", None),
("api_data_url", None),
]
),
OrderedDict(
Expand All @@ -240,6 +240,9 @@ def test_metadata_details(self):
("version", "0.2.0"),
("qualifiers", OrderedDict()),
("subpath", None),
("repository_homepage_url", None),
("repository_download_url", None),
("api_data_url", None),
("primary_language", None),
("description", None),
("release_date", None),
Expand Down Expand Up @@ -267,9 +270,6 @@ def test_metadata_details(self):
("dependencies", []),
("contains_source_code", None),
("source_packages", []),
("repository_homepage_url", None),
("repository_download_url", None),
("api_data_url", None),
]
),
OrderedDict(
Expand All @@ -281,6 +281,9 @@ def test_metadata_details(self):
("version", "0.3.0"),
("qualifiers", OrderedDict()),
("subpath", None),
("repository_homepage_url", None),
("repository_download_url", None),
("api_data_url", None),
("primary_language", None),
("description", None),
("release_date", None),
Expand Down Expand Up @@ -308,9 +311,6 @@ def test_metadata_details(self):
("dependencies", []),
("contains_source_code", None),
("source_packages", []),
("repository_homepage_url", None),
("repository_download_url", None),
("api_data_url", None),
]
),
],
Expand Down

0 comments on commit f31dc0e

Please sign in to comment.