コード例 #1
0
ファイル: test_buildhub.py プロジェクト: zzzeid/probe-scraper
def test_no_min_max_version_overlap():
    channel, min_version, max_version = "release", 63, 62
    bh = Buildhub()

    with pytest.raises(NoDataFoundException):
        bh.get_revision_dates(
            channel, min_version, max_version=max_version, verbose=VERBOSE
        )
コード例 #2
0
def test_min_release():
    channel, min_version, max_version = "release", 63, 63

    bh = Buildhub()
    releases = bh.get_revision_dates(channel, min_version, max_version=max_version, verbose=VERBOSE)

    assert FX_RELEASE_62_0_3 not in releases
コード例 #3
0
def test_pagination():
    channel, min_version, max_version = "nightly", 62, 62

    bh = Buildhub()
    releases = bh.get_revision_dates(channel, min_version, max_version=max_version,
                                     verbose=VERBOSE, window=10)
    assert len(releases) == 97
コード例 #4
0
ファイル: test_buildhub.py プロジェクト: zzzeid/probe-scraper
def test_duplicate_revisions():
    channel, min_version, max_version = "nightly", 67, 67

    bh = Buildhub()
    releases = bh.get_revision_dates(
        channel, min_version, max_version=max_version, verbose=VERBOSE
    )
    assert len({r["revision"] for r in releases}) == len(releases)
コード例 #5
0
ファイル: test_buildhub.py プロジェクト: zzzeid/probe-scraper
def test_nightly_count():
    channel, min_version, max_version = "nightly", 62, 62

    bh = Buildhub()
    releases = bh.get_revision_dates(
        channel, min_version, max_version=max_version, verbose=VERBOSE
    )
    assert len(releases) == 97
コード例 #6
0
def test_version_100():
    channel, min_version = "release", 100
    bh = Buildhub()

    with pytest.raises(AssertionError):
        bh.get_revision_dates(channel, min_version, verbose=VERBOSE)
コード例 #7
0
def test_no_released_version():
    channel, min_version = "release", 99
    bh = Buildhub()

    with pytest.raises(NoDataFoundException):
        bh.get_revision_dates(channel, min_version, verbose=VERBOSE)