Skip to content

Commit

Permalink
Updated tests for checkout mutations to leave out the note field
Browse files Browse the repository at this point in the history
  • Loading branch information
chrismaddalena committed Jul 3, 2024
1 parent 1ee70c8 commit 7648978
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ghostwriter/api/tests/test_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -638,7 +638,8 @@ def generate_server_data(

def test_graphql_checkout_domain(self):
_, token = utils.generate_jwt(self.user)
data = self.generate_domain_data(self.project.pk, self.domain.pk, self.activity.pk, note="Test note")
data = self.generate_domain_data(self.project.pk, self.domain.pk, self.activity.pk)
del data["input"]["note"]
response = self.client.post(
self.domain_uri,
data=data,
Expand All @@ -657,9 +658,8 @@ def test_graphql_checkout_domain(self):

def test_graphql_checkout_server(self):
_, token = utils.generate_jwt(self.user)
data = self.generate_server_data(
self.project.pk, self.server.pk, self.activity.pk, self.server_role.pk, note="Test note"
)
data = self.generate_server_data(self.project.pk, self.server.pk, self.activity.pk, self.server_role.pk)
del data["input"]["note"]
response = self.client.post(
self.server_uri,
data=data,
Expand Down

0 comments on commit 7648978

Please sign in to comment.