def test_package_removed_from_feed(toolchain_db, feed): boost_package = qitoolchain.qipackage.QiPackage("boost", version="1.42") feed.add_package(boost_package) toolchain_db.update(feed.url) feed.remove_package("boost") toolchain_db.update(feed.url) assert not toolchain_db.packages
def test_package_removed_from_feed(toolchain_db, feed): boost_package = qitoolchain.qipackage.QiPackage("boost", version="1.42") feed.add_package(boost_package) toolchain_db.update(feed.url) boost_path = toolchain_db.get_package_path("boost") feed.remove_package("boost") toolchain_db.update(feed.url) assert not toolchain_db.packages assert not os.path.exists(boost_path)
def test_package_removed_from_feed(toolchain_db, feed): """ Test Package Removed from Feed """ boost_package = qitoolchain.qipackage.QiPackage("boost", version="1.42") feed.add_package(boost_package) toolchain_db.update(feed.url) boost_path = toolchain_db.get_package_path("boost") feed.remove_package("boost") toolchain_db.update(feed.url) assert not toolchain_db.packages assert not os.path.exists(boost_path)
def test_downgrading_package(toolchain_db, feed): """ Test Downgrading Package """ boost_package = qitoolchain.qipackage.QiPackage("boost", version="1.44") feed.add_package(boost_package) toolchain_db.update(feed.url) assert toolchain_db.packages["boost"] == boost_package feed.remove_package("boost") old_boost_package = qitoolchain.qipackage.QiPackage("boost", version="1.42") feed.add_package(old_boost_package) toolchain_db.update(feed.url) assert toolchain_db.packages["boost"] == old_boost_package