Skip to content

Commit

Permalink
Added tests cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Glass committed Feb 17, 2011
1 parent a161c29 commit 8f0a3ee
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion shop/tests/order.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,12 @@
from shop.tests.utils.context_managers import SettingsOverride
from shop.util.order import get_order_from_request, add_order_to_request
from unittest import TestCase
import os

class OrderUtilTestCase(TestCase):
THIS_PATH = os.path.abspath(os.path.dirname(__file__))

class OrderUtilTestCase(TestCase):
fixtures = [os.path.join(THIS_PATH, 'fixtures/order.')]
def setUp(self):
self.user = User.objects.create(username="test", email="test@example.com")

Expand Down Expand Up @@ -173,6 +176,10 @@ def setUp(self):
def tearDown(self):
self.user.delete()
self.product.delete()
self.address.delete()
self.address2.delete()
self.country.delete()
self.client.delete()

def test_01_create_order_from_simple_cart(self):
'''
Expand Down

0 comments on commit 8f0a3ee

Please sign in to comment.