Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add local .txt test purl input file #247
Reference: #247

Signed-off-by: John M. Horan <johnmhoran@gmail.com>
  • Loading branch information
johnmhoran committed Jan 31, 2024
commit 4da30a7f1bd3e15218cbb1b2b3cd6470d34005c9
1 change: 1 addition & 0 deletions purldb-toolkit/src/purldb_toolkit/purlcli.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ def check_meta_purl(purl):
return f"There was an error with your '{purl}' query. Make sure that '{purl}' actually exists in the relevant repository."


# xxx
@purlcli.command(name="urls")
@click.option(
"--purl",
Expand Down
3 changes: 3 additions & 0 deletions purldb-toolkit/tests/data/purlcli/meta_input_purls.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
pkg:pypi/fetchcode
pkg:pypi/matchcode
pkg:pypi/minecode
4 changes: 3 additions & 1 deletion purldb-toolkit/tests/test_purlcli.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,8 @@ def test_meta_cli_duplicate_input_sources(self):
"--purl",
"pkg:pypi/minecode",
"--file",
"/mnt/c/nexb/purldb-testing/2024-current-01-testing/txt-input/2024-01-23-purl-meta-input-01.txt",
# "meta_input_purls.txt",
"purldb-toolkit/tests/data/purlcli/meta_input_purls.txt",
"--output",
"-",
]
Expand Down Expand Up @@ -491,6 +492,7 @@ def test_check_meta_purl(self, test_input, expected):

# To come once I've converted the output to a SCTK-like data structure.
# class TestPURLCLI_urls(object):
# xxx


# These tests and the underlying code have not yet been converted to a SCTK-like data structure.
Expand Down