コード例 #1
0
def save_n_data_requests_with_category(user, n, category):    	
    for i in range(n):
    	data_request = DataRequest(creator=user)
    	data_request.name = 'test_data_request_name_' + str(i)
    	data_request.is_active = True
    	data_request.category = category
    	data_request.save()	
コード例 #2
0
ファイル: view_tests.py プロジェクト: cns-iu/nwb
def save_n_data_requests_with_tag(user, n, tag):    	
    for i in range(n):
    	data_request = DataRequest(creator=user)
    	data_request.name = 'test_data_request_name_' + str(i)
    	data_request.is_active = True
    	data_request.save()
    	Tagging.objects.add_tags_and_return_added_tag_names(tag, data_request, user)	
コード例 #3
0
ファイル: tests.py プロジェクト: cns-iu/nwb
def save_n_data_requests(user, n):    	
    for i in range(n):
    	data_request = DataRequest(creator=user)
    	data_request.name = 'test_data_request_name_' + str(i)
    	data_request.is_active = True
    	data_request.save()