Skip to content

Commit

Permalink
feat: Add exact_value field in the TestPlan model
Browse files Browse the repository at this point in the history
  • Loading branch information
Sandro-Meireles committed May 31, 2024
1 parent 12c70d9 commit 2b7adc3
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
22 changes: 22 additions & 0 deletions apip/testplans/migrations/0002_testplan_exact_value.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Generated by Django 5.0 on 2024-05-31 02:08

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
("testplans", "0001_initial"),
]

operations = [
migrations.AddField(
model_name="testplan",
name="exact_value",
field=models.BooleanField(
default=False,
help_text="This field indicates that the value returned will be the same as that defined in schema",
verbose_name="Exact Value",
),
),
]
5 changes: 5 additions & 0 deletions apip/testplans/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@
class TestPlan(models.Model):
endpoint = models.CharField(max_length=255)
service = models.ForeignKey(Service, on_delete=models.CASCADE, related_name="plans")
exact_value = models.BooleanField(
"Exact Value",
help_text="This field indicates that the value returned will be the same as that defined in schema",
default=False
)
schema = models.JSONField(null=True, default=dict)

def __str__(self) -> str:
Expand Down

0 comments on commit 2b7adc3

Please sign in to comment.