Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(8)  |  Call(4)  |  Derive(0)  |  Import(4)

src/p/k/pkgdb2-HEAD/tests/test_pkgdblib.py   pkgdb2(Download)
import pkgdb2
import pkgdb2.lib as pkgdblib
from tests import (FakeFasUser, FakeFasUserAdmin, Modeltests,
                   FakeFasGroupValid, FakeFasGroupInvalid,
                   create_collection, create_package,
        self.assertEqual(pkg_list, [])
 
        create_package_critpath(self.session)
 
        pkg_list = pkgdblib.get_critpath_packages(self.session)

src/p/k/pkgdb2-HEAD/tests/test_flask_api_packages.py   pkgdb2(Download)
from pkgdb2 import lib as pkgdblib
from pkgdb2.lib import model
from tests import (Modeltests, FakeFasUser, FakeFasUserAdmin,
                   create_collection, create_package, create_package_acl,
                   create_package_critpath, user_set)
 
        create_package_acl(self.session)
        create_package_critpath(self.session)
 
        output = self.app.get('/api/packages/guake/')

src/p/k/pkgdb2-HEAD/tests/test_flask_api_extras.py   pkgdb2(Download)
import pkgdb2
from pkgdb2.lib import model
from tests import (Modeltests, FakeFasUser,
                   create_package_acl, create_package_acl2,
                   create_package_critpath)
    def test_api_critpath_filled(self):
        """ Test the api_critpath function with a filled database. """
        # Fill the DB
        create_package_acl(self.session)
        create_package_critpath(self.session)

src/p/k/pkgdb2-HEAD/tests/test_package_listing.py   pkgdb2(Download)
 
from pkgdb2.lib import model
from tests import (Modeltests, create_package_listing, create_package_acl,
                   create_package_critpath)
 
        self.assertEqual(pkg_list, [])
 
        create_package_critpath(self.session)
 
        pkg_list = model.PackageListing.get_critpath_packages(self.session)