Skip to content

Commit

Permalink
test: removed unused imports, fixed fixture decorator
Browse files Browse the repository at this point in the history
  • Loading branch information
yanazPL committed Mar 10, 2024
1 parent bc9aaa5 commit f856f17
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions Dshop/apps/products_catalogue/tests/conftest.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import datetime
from django.contrib.auth.models import User
import pytest
from rest_framework.test import APIClient
from apps.products_catalogue.models import Category, Product


Expand Down
2 changes: 1 addition & 1 deletion Dshop/apps/products_catalogue/tests/test_api_products.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import pytest
from django.urls import reverse
from django.conf import settings
from apps.products_catalogue.models import Category, Product, ProductImage
from apps.products_catalogue.models import ProductImage
from PIL import Image
from django.core.files.uploadedfile import SimpleUploadedFile
import tempfile
Expand Down
2 changes: 1 addition & 1 deletion Dshop/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def tv_product():
return product


@pytest.pytest.fixture
@pytest.fixture
def inactive_product():
category = Category.objects.create(name='Test Category 2', is_active=True)
return Product.objects.create(
Expand Down

0 comments on commit f856f17

Please sign in to comment.