File: test_gfgithub.py

package info (click to toggle)
gftools 0.9.95%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 12,584 kB
  • sloc: python: 15,785; sh: 33; makefile: 6
file content (16 lines) | stat: -rw-r--r-- 351 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
from gftools.gfgithub import GitHubClient
import pytest


@pytest.mark.parametrize(
    "pr_number,file_count",
    [
        (6874, 1),
        (6779, 3),
        (2987, 178),
        (6787, 568),
    ],
)
def test_pr_files(pr_number, file_count):
    client = GitHubClient("google", "fonts")
    assert len(client.pr_files(pr_number)) == file_count