e1d9bec52fd28e6ad751193b085139b7c423efa4,app/tests/workstations_tests/test_migrations.py,,test_workstation_group_migration,#,9
Before Change
assert ws.editors_group is None
with pytest.raises(ObjectDoesNotExist):
assert ws.users_group is None
// Test group addition
call_command("migrate", "workstations", "0003")
After Change
new_apps = executor.loader.project_state(migrate_to).apps
Workstation = new_apps.get_model(app, "Workstation")
new_ws = Workstation.objects.get(title="foo")
assert new_ws.editors_group
assert new_ws.users_group
assert new_ws.slug == old_ws.slug
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 3
Instances Project Name: comic/grand-challenge.org
Commit Name: e1d9bec52fd28e6ad751193b085139b7c423efa4
Time: 2019-08-09
Author: code@jmsmkn.com
File Name: app/tests/workstations_tests/test_migrations.py
Class Name:
Method Name: test_workstation_group_migration
Project Name: commonsense/conceptnet5
Commit Name: 79d149dd39dc7e7d22c623c0a4a4d3ab99e61c76
Time: 2017-06-15
Author: joanna.teresa.duda@gmail.com
File Name: conceptnet5/vectors/transforms.py
Class Name:
Method Name: choose_small_vocabulary
Project Name: dataiku/dataiku-contrib
Commit Name: 3ee793e54472d1f20fc6e5df72977490acf5659f
Time: 2019-03-19
Author: duphan@Du-MacBook.local
File Name: deeplearning-image-gpu/python-lib/api_designer_utils.py
Class Name:
Method Name: get_params
Project Name: UFAL-DSG/tgen
Commit Name: 2fc12196a70b67bbfc62f64766ac9f7df4eadef0
Time: 2014-09-09
Author: odusek@ufal.mff.cuni.cz
File Name: tgen/rank.py
Class Name: PerceptronRanker
Method Name: __init__