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 )
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
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
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)
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
def test_version_100(): channel, min_version = "release", 100 bh = Buildhub() with pytest.raises(AssertionError): bh.get_revision_dates(channel, min_version, verbose=VERBOSE)
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)