diff --git a/setup.py b/setup.py deleted file mode 100644 index 2ae15d3..0000000 --- a/setup.py +++ /dev/null @@ -1,27 +0,0 @@ -# -*- coding: utf-8 -*- -from setuptools import setup - -packages = ['oscar_odin', 'oscar_odin.mappings', 'oscar_odin.resources'] - -package_data = {'': ['*'], 'oscar_odin': ['fixtures/oscar_odin/*']} - -install_requires = ['django-oscar>=3.2,<4.0', 'odin>=2.9,<3.0'] - -setup_kwargs = { - 'name': 'django-oscar-odin', - 'version': '0.1.0', - 'description': 'Odin Resources and mappings to Oscar models', - 'long_description': '# Oscar Odin\n\n', - 'author': 'Tim Savage', - 'author_email': 'tim@savage.company', - 'maintainer': 'None', - 'maintainer_email': 'None', - 'url': 'https://github.com/django-oscar/oscar-odin', - 'packages': packages, - 'package_data': package_data, - 'install_requires': install_requires, - 'python_requires': '>=3.8,<4.0', -} - - -setup(**setup_kwargs) diff --git a/tests/mappings/test_category.py b/tests/mappings/test_catalogue.py similarity index 77% rename from tests/mappings/test_category.py rename to tests/mappings/test_catalogue.py index 73b41c6..96e5b91 100644 --- a/tests/mappings/test_category.py +++ b/tests/mappings/test_catalogue.py @@ -1,7 +1,7 @@ from django.test import TestCase from oscar.core.loading import get_model -from oscar_odin.mappings import category +from oscar_odin.mappings import catalogue Product = get_model("catalogue", "Product") @@ -12,21 +12,21 @@ class TestProduct(TestCase): def test_mapping__basic_model_to_resource(self): product = Product.objects.first() - actual = category.product_to_resource(product) + actual = catalogue.product_to_resource(product) self.assertEqual(product.title, actual.title) def test_mapping__basic_product_with_out_of_stock_children(self): product = Product.objects.get(id=1) - actual = category.product_to_resource(product) + actual = catalogue.product_to_resource(product) self.assertEqual(product.title, actual.title) def test_mapping__where_is_a_parent_product_do_not_include_children(self): product = Product.objects.get(id=8) - actual = category.product_to_resource(product) + actual = catalogue.product_to_resource(product) self.assertEqual(product.title, actual.title) self.assertIsNone(actual.children) @@ -34,7 +34,7 @@ def test_mapping__where_is_a_parent_product_do_not_include_children(self): def test_mapping__where_is_a_parent_product_include_children(self): product = Product.objects.get(id=8) - actual = category.product_to_resource(product, include_children=True) + actual = catalogue.product_to_resource(product, include_children=True) self.assertEqual(product.title, actual.title) self.assertIsNotNone(actual.children) diff --git a/tests/resources/test_category.py b/tests/resources/test_category.py index 3849e8b..9468621 100644 --- a/tests/resources/test_category.py +++ b/tests/resources/test_category.py @@ -5,6 +5,6 @@ class TestProduct(TestCase): def test_init(self): - target = resources.category.Product() + target = resources.catalogue.Product() self.assertIsNotNone(target)