Did I find the right examples for you? yes no

All Samples(21)  |  Call(11)  |  Derive(0)  |  Import(10)

src/l/f/lfs-HEAD/shipping/tests.py   lfs(Download)
from lfs.cart.models import CartItem
from lfs.caching.listeners import update_cart_cache
from lfs.tests.utils import create_request
 
class ShippingMethodTestCase(TestCase):
    def test_get_product_delivery_time_1(self):
        """Tests the product delivery time for the *product view*.
        """
        request = create_request()
        request.user = AnonymousUser()
    def test_get_product_delivery_time_2(self):
        """Tests the product delivery time for the *cart view*.
        """        
        request = create_request()
        request.user = AnonymousUser()

src/d/j/django-lfs-HEAD/lfs/shipping/tests.py   django-lfs(Download)
from lfs.cart.models import CartItem
from lfs.caching.listeners import update_cart_cache
from lfs.tests.utils import create_request
 
 
    def test_get_product_delivery_time_1(self):
        """Tests the product delivery time for the *product view*.
        """
        request = create_request()
        request.user = AnonymousUser()
    def test_get_product_delivery_time_2(self):
        """Tests the product delivery time for the *cart view*.
        """
        request = create_request()
        request.user = AnonymousUser()
        self.ch = Country.objects.create(code="ch", name="Switzerland")
 
        self.request = create_request()
        self.request.user = AnonymousUser()
        self.customer = get_or_create_customer(self.request)

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
 

src/d/j/django-lfs-HEAD/lfs/customer_tax/tests.py   django-lfs(Download)
 
# test imports
from lfs.tests.utils import create_request
 
# lfs imports
        self.product = Product.objects.create(name="P1", slug="p1", price=100.0)
 
        self.request = create_request()
        self.request.user = AnonymousUser()
        self.customer = get_or_create_customer(self.request)

src/d/j/django-lfs-HEAD/lfs/checkout/tests/test_checkout.py   django-lfs(Download)
        from lfs.checkout.settings import CHECKOUT_TYPE_ANON
 
        from lfs.tests.utils import create_request
        request = create_request()
 

src/d/j/django-lfs-0.7.7/lfs/shipping/tests.py   django-lfs(Download)
from lfs.cart.models import CartItem
from lfs.caching.listeners import update_cart_cache
from lfs.tests.utils import create_request
 
 
    def test_get_product_delivery_time_1(self):
        """Tests the product delivery time for the *product view*.
        """
        request = create_request()
        request.user = AnonymousUser()
    def test_get_product_delivery_time_2(self):
        """Tests the product delivery time for the *cart view*.
        """
        request = create_request()
        request.user = AnonymousUser()

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
 

src/d/j/django-lfs-0.7.7/lfs/customer_tax/tests.py   django-lfs(Download)
 
# test imports
from lfs.tests.utils import create_request
 
# lfs imports
        self.product = Product.objects.create(name="P1", slug="p1", price=100.0)
 
        self.request = create_request()
        self.request.user = AnonymousUser()
        self.customer = get_or_create_customer(self.request)

src/d/j/django-lfs-0.7.7/lfs/checkout/tests/test_checkout.py   django-lfs(Download)
        from lfs.checkout.settings import CHECKOUT_TYPE_ANON
 
        from lfs.tests.utils import create_request
        request = create_request()
 

src/d/j/django-lfs-0.7.7/lfs/cart/tests.py   django-lfs(Download)
from lfs.core.models import Shop
from lfs.tests.utils import RequestFactory
from lfs.tests.utils import create_request
from lfs.tax.models import Tax
from lfs.voucher.models import Voucher