forked from kiwitcms/Kiwi
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add fields and the migration Added three fields in models.py: - setup_duration - testing_duration - expected_duration (property deco) Added new migration to reflect the 2 new duration fields - Added migration file 0018_add_testcase_duration_fiels.py - Reflected fields are setup_duration and testing_duration - The affected models are Testcase and Historicaltestcase Fixes lint failures and adds fields to templates kiwitcms#1923 - Migration file symbol fixes via black - Added three fields in testcase view (get.html) - Added two fields in testcase add & edit view Displaying duration fields in testcase.get kiwitcms#1923 - Displays fields directly from objects into get.html - Removed todos - Fixed duplicate line Fixes empty fields bug for merge into master kiwitcms#1923 - `setup_duration` and `testing_duration` now defaultly nulled until API calls are implemented - `expected_duration` default return 0 as property for same reason Modified expected_duration property to reflect business logic better kiwitcms#1923
- Loading branch information
1 parent
854553b
commit 61136f7
Showing
4 changed files
with
67 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
tcms/testcases/migrations/0018_add_testcase_duration_fields.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# Generated by Django 3.1.6 on 2021-02-16 09:40 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("testcases", "0017_rename_related_names"), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name="historicaltestcase", | ||
name="setup_duration", | ||
field=models.DurationField(blank=True, db_index=True, null=True), | ||
), | ||
migrations.AddField( | ||
model_name="historicaltestcase", | ||
name="testing_duration", | ||
field=models.DurationField(blank=True, db_index=True, null=True), | ||
), | ||
migrations.AddField( | ||
model_name="testcase", | ||
name="setup_duration", | ||
field=models.DurationField(blank=True, db_index=True, null=True), | ||
), | ||
migrations.AddField( | ||
model_name="testcase", | ||
name="testing_duration", | ||
field=models.DurationField(blank=True, db_index=True, null=True), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters