Skip to content

Commit

Permalink
remove quantity field contraint from product tests indicated by ci logs
Browse files Browse the repository at this point in the history
  • Loading branch information
Horlawhumy-dev committed Jul 4, 2024
1 parent e8c169c commit faf7794
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions test/test_product.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,7 @@ def test_create_product_with_invalid_data(api_client, admin_user, get_token):
}
response = api_client.post('/api/inventory/products/add/', invalid_data, format='json')
assert response.status_code == status.HTTP_400_BAD_REQUEST
assert response.data.get('product') is None


def test_unauthenticated_user_cannot_create_product(api_client, product_data):
response = api_client.post('/api/inventory/products/add/', product_data, format='json')
assert response.status_code == status.HTTP_401_UNAUTHORIZED

0 comments on commit faf7794

Please sign in to comment.