|
9 | 9 | def test_download_and_get_github_action_by_url():
|
10 | 10 | scanner = GithubActionScanner()
|
11 | 11 | with tempfile.TemporaryDirectory() as tmpdirname:
|
12 |
| - data, path = scanner.download_and_get_package_info(tmpdirname, "https://github.com/expressjs/express.git", "v5.0.0") |
| 12 | + data, path = scanner.download_and_get_package_info(tmpdirname, "https://github.com/actions/checkout.git", "v4.2.2") |
13 | 13 | assert not data
|
14 |
| - assert os.path.exists(os.path.join(tmpdirname, "https:--github.com-expressjs-express.git", "express-5.0.0", "package.json")) |
| 14 | + assert os.path.exists(os.path.join(tmpdirname, "https:--github.com-actions-checkout.git", "checkout-4.2.2", "package.json")) |
15 | 15 |
|
16 | 16 |
|
17 | 17 | def test_download_and_get_github_action_by_name():
|
18 | 18 | scanner = GithubActionScanner()
|
19 | 19 | with tempfile.TemporaryDirectory() as tmpdirname:
|
20 |
| - data, path = scanner.download_and_get_package_info(tmpdirname, "expressjs/express", "v5.0.0") |
| 20 | + data, path = scanner.download_and_get_package_info(tmpdirname, "actions/checkout", "v4.2.2") |
21 | 21 | assert not data
|
22 |
| - assert os.path.exists(os.path.join(tmpdirname, "expressjs-express", "express-5.0.0", "package.json")) |
| 22 | + assert os.path.exists(os.path.join(tmpdirname, "actions-checkout", "checkout-4.2.2", "package.json")) |
0 commit comments