Skip to content

Commit

Permalink
tests: add a test to test the file name extraction strategy
Browse files Browse the repository at this point in the history
  • Loading branch information
liushuyu committed Dec 5, 2023
1 parent 4a32966 commit 900551d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,9 @@ def test_parse_url(self):
self.assertEqual(info.url, 'https://github.com/AOSC-Dev/acbs#title')
self.assertEqual(info.revision, 'a2e5eff')
self.assertEqual(info.chksum, ('none', ''))
info = parse_url_schema('tbl::use-url-name=true::https://example.com/test.tar.gz;p=123?test=ok#fragment', 'sha256::123')
self.assertEqual(info.type, 'tarball')
self.assertEqual(info.source_name, 'test.tar.gz')

def test_parse_new_spec(self):
acbs.parser.arch = 'none'
Expand Down

0 comments on commit 900551d

Please sign in to comment.