Did I find the right examples for you? yes no

All Samples(32)  |  Call(18)  |  Derive(0)  |  Import(14)

src/d/j/django-lfs-0.7.7/lfs/shipping/tests.py   django-lfs(Download)
 
# test imports
from lfs.tests.utils import DummyRequest
 
# lfs imports
 
        self.user = User.objects.get(username="admin")
        self.request = DummyRequest(user=self.user)
 
        # Create delivery times
    def test_valid_shipping_methods_2(self):
        """Tests valid shipping methods. Test with a cart price criterion.
        """
        user = User.objects.get(username="admin")
        request = DummyRequest(user=user)
        # Prepare request
        user = User.objects.get(username="admin")
        request = DummyRequest(user=user)
 
        # Create a weigth criterion and add it to the shipping method 1.
        # Prepare request
        user = User.objects.get(username="admin")
        request = DummyRequest(user=user)
 
        # Create a weigth criterion and add it to the shipping method 1.

src/d/j/django-lfs-HEAD/lfs/shipping/tests.py   django-lfs(Download)
from lfs.customer.utils import get_or_create_customer
from lfs.customer_tax.models import CustomerTax
from lfs.tests.utils import DummyRequest
 
# lfs imports
 
        self.user = User.objects.get(username="admin")
        self.request = DummyRequest(user=self.user)
 
        # Create delivery times
    def test_valid_shipping_methods_2(self):
        """Tests valid shipping methods. Test with a cart price criterion.
        """
        user = User.objects.get(username="admin")
        request = DummyRequest(user=user)
        # Prepare request
        user = User.objects.get(username="admin")
        request = DummyRequest(user=user)
 
        # Create a weigth criterion and add it to the shipping method 1.
        # Prepare request
        user = User.objects.get(username="admin")
        request = DummyRequest(user=user)
 
        # Create a weigth criterion and add it to the shipping method 1.

src/d/j/django-lfs-0.7.7/lfs/discounts/tests.py   django-lfs(Download)
# test imports
from lfs.tests.utils import create_request
from lfs.tests.utils import DummyRequest
 
# lfs imports
    def setUp(self):
        """
        """
        self.user = User.objects.get(username="admin")
        self.request = DummyRequest(user=self.user)

src/d/j/django-lfs-HEAD/lfs/discounts/tests.py   django-lfs(Download)
# test imports
from lfs.tests.utils import create_request
from lfs.tests.utils import DummyRequest
 
# lfs imports
    def setUp(self):
        """
        """
        self.user = User.objects.get(username="admin")
        self.request = DummyRequest(user=self.user)

src/l/f/lfs-HEAD/shipping/tests.py   lfs(Download)
 
# test imports
from lfs.tests.utils import DummyRequest
 
# lfs imports
 
        self.user = User.objects.get(username="admin")
        self.request = DummyRequest(user=self.user)
 
        # Create delivery times
    def test_valid_shipping_methods_2(self):
        """Tests valid shipping methods. Test with a cart price criterion.
        """        
        user = User.objects.get(username="admin")
        request = DummyRequest(user=user)
        # Prepare request
        user = User.objects.get(username="admin")
        request = DummyRequest(user=user)
 
        # Create a weigth criterion and add it to the shipping method 1.
        # Prepare request
        user = User.objects.get(username="admin")
        request = DummyRequest(user=user)
 
        # Create a weigth criterion and add it to the shipping method 1.        

src/d/j/django-lfs-0.7.7/lfs/page/tests.py   django-lfs(Download)
 
# test imports
from lfs.tests.utils import DummyRequest
 
# lfs imports
 
        self.user = User.objects.get(username="admin")
        self.request = DummyRequest(user=self.user)
 
        self.root = Page.objects.create(

src/d/j/django-lfs-HEAD/lfs/page/tests.py   django-lfs(Download)
 
# test imports
from lfs.tests.utils import DummyRequest
 
# lfs imports
 
        self.user = User.objects.get(username="admin")
        self.request = DummyRequest(user=self.user)
 
        self.root = Page.objects.create(

src/l/f/lfs-HEAD/page/tests.py   lfs(Download)
 
# test imports
from lfs.tests.utils import DummyRequest
 
# lfs imports
 
        self.user = User.objects.get(username="admin")
        self.request = DummyRequest(user=self.user)
 
        self.page = Page.objects.create(

src/l/f/lfs-HEAD/tests/products.py   lfs(Download)
 
# test imports
from lfs.tests.utils import DummyRequest
 
# lfs imports

src/l/f/lfs-HEAD/tests/categories.py   lfs(Download)
 
# test imports
from lfs.tests.utils import DummyRequest
 
# lfs imports
    def test_get_category_nodes(self):
        """
        """
        category_nodes = get_category_nodes(DummyRequest())

  1 | 2  Next