93c1b1325065e22bf3aa785ee00bbcdab515e604,tests/storages_tests/rdb_tests/test_models.py,TestTrialSystemAttributeModel,test_cascade_delete_on_trial,#Any#,313

Before Change


    def test_cascade_delete_on_trial(session: Session) -> None:

        trial_id = 1
        study = StudyModel(study_id=1, study_name="test-study", direction=StudyDirection.MINIMIZE)
        trial = TrialModel(trial_id=trial_id, study_id=study.study_id, state=TrialState.COMPLETE)
        trial.system_attributes.append(
            TrialSystemAttributeModel(trial_id=trial_id, key="sample-key1", value_json="1")
        )

After Change


    def test_cascade_delete_on_trial(session: Session) -> None:

        trial_id = 1
        direction = StudyDirectionModel(direction=StudyDirection.MINIMIZE)
        study = StudyModel(study_id=1, study_name="test-study", directions=[direction])
        trial = TrialModel(trial_id=trial_id, study_id=study.study_id, state=TrialState.COMPLETE)
        trial.system_attributes.append(
            TrialSystemAttributeModel(trial_id=trial_id, key="sample-key1", value_json="1")
        )
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 8

Non-data size: 7

Instances


Project Name: pfnet/optuna
Commit Name: 93c1b1325065e22bf3aa785ee00bbcdab515e604
Time: 2020-11-16
Author: imamura@ms.k.u-tokyo.ac.jp
File Name: tests/storages_tests/rdb_tests/test_models.py
Class Name: TestTrialSystemAttributeModel
Method Name: test_cascade_delete_on_trial


Project Name: pfnet/optuna
Commit Name: 93c1b1325065e22bf3aa785ee00bbcdab515e604
Time: 2020-11-16
Author: imamura@ms.k.u-tokyo.ac.jp
File Name: tests/storages_tests/rdb_tests/test_models.py
Class Name: TestTrialUserAttributeModel
Method Name: test_all


Project Name: pfnet/optuna
Commit Name: 93c1b1325065e22bf3aa785ee00bbcdab515e604
Time: 2020-11-16
Author: imamura@ms.k.u-tokyo.ac.jp
File Name: tests/storages_tests/rdb_tests/test_models.py
Class Name: TestTrialSystemAttributeModel
Method Name: test_where_study


Project Name: pfnet/optuna
Commit Name: 93c1b1325065e22bf3aa785ee00bbcdab515e604
Time: 2020-11-16
Author: imamura@ms.k.u-tokyo.ac.jp
File Name: tests/storages_tests/rdb_tests/test_models.py
Class Name: TestTrialUserAttributeModel
Method Name: test_cascade_delete_on_trial


Project Name: pfnet/optuna
Commit Name: 93c1b1325065e22bf3aa785ee00bbcdab515e604
Time: 2020-11-16
Author: imamura@ms.k.u-tokyo.ac.jp
File Name: tests/storages_tests/rdb_tests/test_models.py
Class Name: TestTrialSystemAttributeModel
Method Name: test_all


Project Name: pfnet/optuna
Commit Name: 93c1b1325065e22bf3aa785ee00bbcdab515e604
Time: 2020-11-16
Author: imamura@ms.k.u-tokyo.ac.jp
File Name: tests/storages_tests/rdb_tests/test_models.py
Class Name: TestTrialSystemAttributeModel
Method Name: test_where_trial


Project Name: pfnet/optuna
Commit Name: 93c1b1325065e22bf3aa785ee00bbcdab515e604
Time: 2020-11-16
Author: imamura@ms.k.u-tokyo.ac.jp
File Name: tests/storages_tests/rdb_tests/test_models.py
Class Name: TestTrialUserAttributeModel
Method Name: test_where_study


Project Name: pfnet/optuna
Commit Name: 93c1b1325065e22bf3aa785ee00bbcdab515e604
Time: 2020-11-16
Author: imamura@ms.k.u-tokyo.ac.jp
File Name: tests/storages_tests/rdb_tests/test_models.py
Class Name: TestTrialUserAttributeModel
Method Name: test_where_trial