Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
bohanjason committed Oct 21, 2018
1 parent 871bd9c commit 34ed95b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions server/website/tests/test_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ def test_create_basic_session_ok(self):
post_data = {
'name': 'test_create_basic_session',
'description': 'testing create basic session...',
'tuning_session': False,
'tuning_session': 'no_tuning_session',
'hardware': 16,
'dbms': 1
}
Expand All @@ -173,7 +173,7 @@ def test_create_tuning_session_ok(self):
post_data = {
'name': 'test_create_basic_session',
'description': 'testing create basic session...',
'tuning_session': True,
'tuning_session': 'tuning_session',
'hardware': 16,
'dbms': 1,
'target_objective': 'throughput_txn_per_sec'
Expand All @@ -197,7 +197,7 @@ def test_edit_basic_session_ok(self):
'session_id': TEST_BASIC_SESSION_ID})
post_data = {
'name': 'new_session_name',
'tuning_session': True,
'tuning_session': 'tuning_session',
'hardware': 18,
'dbms': 1,
'target_objective': 'throughput_txn_per_sec'
Expand Down Expand Up @@ -231,7 +231,7 @@ def test_delete_multiple_sessions(self):
post_data = {
'name': 'session_{}'.format(i),
'description': "",
'tuning_session': False,
'tuning_session': 'no_tuning_session',
'hardware': 16,
'dbms': 1,
'target_objective': 'throughput_txn_per_sec'
Expand Down
4 changes: 2 additions & 2 deletions server/website/website/fixtures/test_user_sessions.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"hardware": 16,
"project": 1,
"upload_code": "1234567890",
"tuning_session": false,
"tuning_session": "no_tuning_session",
"target_objective": null,
"nondefault_settings": null,
"creation_time": "2017-11-30T02:00:49.611Z",
Expand All @@ -37,7 +37,7 @@
"hardware": 16,
"project": 1,
"upload_code": "0987654321",
"tuning_session": true,
"tuning_session": "tuning_session",
"target_objective": "throughput_txn_per_sec",
"nondefault_settings": null,
"creation_time": "2017-11-30T02:00:49.611Z",
Expand Down
2 changes: 1 addition & 1 deletion server/website/website/migrations/0001_initial.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ class Migration(migrations.Migration):
('creation_time', models.DateTimeField()),
('last_update', models.DateTimeField()),
('upload_code', models.CharField(max_length=30, unique=True)),
('tuning_session', models.BooleanField()),
('tuning_session', models.CharField(choices=[('tuning_sesion', 'Tuning Session'), ('no_tuning_session', 'No Tuning'), ('randomly_generate', 'Randomly Generate')], max_length=64)),
('target_objective', models.CharField(choices=[(b'throughput_txn_per_sec', b'Throughput'), (b'99th_lat_ms', b'99 Percentile Latency')], max_length=64, null=True)),
('nondefault_settings', models.TextField(null=True)),
('dbms', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='website.DBMSCatalog')),
Expand Down

0 comments on commit 34ed95b

Please sign in to comment.