Skip to content

Commit

Permalink
Merge branch 'master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
PengfeiLi0218 authored Jan 7, 2019
2 parents a8d498d + 7f807bf commit 81fd586
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 1 deletion.
33 changes: 33 additions & 0 deletions apitester/runtests/migrations/0008_auto_20181227_1738.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# Generated by Django 2.0.7 on 2018-12-27 16:38

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('runtests', '0007_auto_20181115_1557'),
]

operations = [
migrations.AddField(
model_name='profileoperation',
name='is_deleted',
field=models.IntegerField(default=0, help_text='Deleted', verbose_name='Deleted'),
),
migrations.AddField(
model_name='profileoperation',
name='remark',
field=models.CharField(blank=True, help_text='remark', max_length=255, null=True, verbose_name='remark'),
),
migrations.AddField(
model_name='profileoperation',
name='replica_id',
field=models.IntegerField(default=1, help_text='Test Replica id', verbose_name='Replica id'),
),
migrations.AlterField(
model_name='profileoperation',
name='order',
field=models.IntegerField(default=100, help_text='Test order', verbose_name='Order'),
),
]
2 changes: 1 addition & 1 deletion apitester/runtests/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -463,4 +463,4 @@ def deleteJsonBody(request):
profile.is_deleted = 1
profile.save()

return JsonResponse({'state': True})
return JsonResponse({'state': True})
12 changes: 12 additions & 0 deletions apitester/test_create_test_configuration.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
from django.test import TestCase
from runtests.models import TestConfiguration

class NewTestConfigurationTestCase(TestCase):
'''
Create a new (empty) TestConfiguration model.
'''
def test_create_test_configuration(self):
test_config = TestConfiguration(owner_id=1, name='Fred',
api_version='3.1.0')
test_config.save()
return test_config

0 comments on commit 81fd586

Please sign in to comment.