ec43877cd7881e10bbcd3239644062f9c7ed6132,api/data_refinery_api/tests.py,APITestCases,test_starting_dataset_fails_without_experiments,#APITestCases#,546
Before Change
response = self.client.post(
reverse("token", kwargs={"version": API_VERSION}), content_type="application/json"
)
token = response.json()
token["is_activated"] = True
token_id = token["id"]
response = self.client.put(
reverse("token_id", kwargs={"id": token_id, "version": API_VERSION}),
json.dumps(token),
content_type="application/json",
)
activated_token = response.json()
self.assertEqual(activated_token["id"], token_id)
self.assertEqual(activated_token["is_activated"], True)
// Good, except for having zero experiments
After Change
// Create a token first
response = self.client.post(
reverse("token", kwargs={"version": API_VERSION}),
json.dumps({"is_activated": True}),
content_type="application/json",
)
token_id = response.json()["id"]
// Good, except for having zero experiments
data = {"email_address": "baz@gmail.com", "data": {}}
response = self.client.post(
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 18
Instances
Project Name: AlexsLemonade/refinebio
Commit Name: ec43877cd7881e10bbcd3239644062f9c7ed6132
Time: 2020-07-15
Author: willvauclain.dev@gmail.com
File Name: api/data_refinery_api/tests.py
Class Name: APITestCases
Method Name: test_starting_dataset_fails_without_experiments
Project Name: AlexsLemonade/refinebio
Commit Name: ec43877cd7881e10bbcd3239644062f9c7ed6132
Time: 2020-07-15
Author: willvauclain.dev@gmail.com
File Name: api/data_refinery_api/tests.py
Class Name: APITestCases
Method Name: test_starting_dataset_fails_without_experiments
Project Name: AlexsLemonade/refinebio
Commit Name: ec43877cd7881e10bbcd3239644062f9c7ed6132
Time: 2020-07-15
Author: willvauclain.dev@gmail.com
File Name: api/data_refinery_api/tests.py
Class Name: APITestCases
Method Name: test_create_update_dataset
Project Name: AlexsLemonade/refinebio
Commit Name: ec43877cd7881e10bbcd3239644062f9c7ed6132
Time: 2020-07-15
Author: willvauclain.dev@gmail.com
File Name: api/data_refinery_api/tests.py
Class Name: APITestCases
Method Name: test_create_dataset_fails_without_email