Skip to content

Commit

Permalink
refactor: updated test to verify insertion to db
Browse files Browse the repository at this point in the history
  • Loading branch information
sameeramin committed May 15, 2024
1 parent 0e614a6 commit 96dc92e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions license_manager/apps/api/v1/tests/test_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
from license_manager.apps.subscriptions import constants
from license_manager.apps.subscriptions.exceptions import LicenseRevocationError
from license_manager.apps.subscriptions.models import (
CustomerAgreement,
License,
SubscriptionLicenseSource,
SubscriptionsFeatureRole,
Expand Down Expand Up @@ -530,6 +531,7 @@ def test_customer_agreement_create_superuser_201(api_client, superuser):

assert status.HTTP_201_CREATED == response.status_code
_assert_customer_agreement_response_correct(response.data, customer_agreement)
assert CustomerAgreement.objects.filter(uuid=response.data['uuid']).exists()


@pytest.mark.django_db
Expand Down

0 comments on commit 96dc92e

Please sign in to comment.