| 1 | from gftools.gfgithub import GitHubClient |
| 2 | import pytest |
| 3 | |
| 4 | |
| 5 | @pytest.mark.parametrize( |
| 6 | "pr_number,file_count", |
| 7 | [ |
| 8 | (6874, 1), |
| 9 | (6779, 3), |
| 10 | (2987, 178), |
| 11 | (6787, 568), |
| 12 | ], |
| 13 | ) |
| 14 | def test_pr_files(pr_number, file_count): |
| 15 | client = GitHubClient("google", "fonts") |
| 16 | assert len(client.pr_files(pr_number)) == file_count |