Did I find the right examples for you? yes no

All Samples(57)  |  Call(38)  |  Derive(0)  |  Import(19)

src/l/f/lfs-HEAD/order/tests.py   lfs(Download)
from lfs.tax.models import Tax
from lfs.tests.utils import DummySession
from lfs.tests.utils import RequestFactory
 
class OrderTestCase(TestCase):
        session = SessionStore()
 
        rf = RequestFactory()
        self.request = rf.get('/')
        self.request.session = session

src/l/f/lfs-HEAD/core/tests.py   lfs(Download)
from lfs.core.models import Country
from lfs.order.models import Order
from lfs.tests.utils import RequestFactory
import lfs.core.utils
 
        session = SessionStore()
 
        rf = RequestFactory()
        request = rf.get('/')
        request.session = session

src/l/f/lfs-HEAD/catalog/tests.py   lfs(Download)
from lfs.core.signals import product_removed_property_group
from lfs.tax.models import Tax
from lfs.tests.utils import RequestFactory
 
class PriceFilterTestCase(TestCase):

src/d/j/django-lfs-HEAD/lfs/voucher/tests.py   django-lfs(Download)
from lfs.cart.models import CartItem
from lfs.catalog.models import Product
from lfs.tests.utils import RequestFactory
from lfs.tax.models import Tax
from lfs.voucher.models import Voucher

src/d/j/django-lfs-HEAD/lfs/order/tests.py   django-lfs(Download)
from lfs.tax.models import Tax
from lfs.tests.utils import DummySession
from lfs.tests.utils import RequestFactory
 
 
        session.save()
 
        rf = RequestFactory()
        self.request = rf.get('/')
        self.request.session = session

src/d/j/django-lfs-HEAD/lfs/net_price/tests.py   django-lfs(Download)
from lfs.catalog.models import Product
from lfs.tax.models import Tax
from lfs.tests.utils import RequestFactory
 
 

src/d/j/django-lfs-HEAD/lfs/gross_price/tests.py   django-lfs(Download)
from lfs.catalog.models import Product
from lfs.tax.models import Tax
from lfs.tests.utils import RequestFactory
 
 

src/d/j/django-lfs-HEAD/lfs/discounts/tests.py   django-lfs(Download)
from lfs.shipping.models import ShippingMethod
from lfs.tax.models import Tax
from lfs.tests.utils import RequestFactory
 
class DiscountsTestCase1(TestCase):
        session.save()
 
        rf = RequestFactory()
        self.request = rf.get('/')
        self.request.session = session

src/d/j/django-lfs-HEAD/lfs/core/tests.py   django-lfs(Download)
from lfs.core.templatetags.lfs_tags import currency
from lfs.order.models import Order
from lfs.tests.utils import RequestFactory
 
 
        session = SessionStore()
 
        rf = RequestFactory()
        request = rf.get('/')
        request.session = session
 
        # Simulating a new request
        rf = RequestFactory()
        request = rf.get('/')
        request.session = session
 
        # Simulating a new request
        rf = RequestFactory()
        request = rf.get('/')
        request.session = session
    def test_manage_urls_anonymous(self):
        """Tests that all manage urls cannot accessed by anonymous user.
        """
        rf = RequestFactory()
        request = rf.get("/")

src/d/j/django-lfs-HEAD/lfs/catalog/tests.py   django-lfs(Download)
from lfs.manufacturer.models import Manufacturer
from lfs.tax.models import Tax
from lfs.tests.utils import RequestFactory
 
 

  1 | 2  Next