97c5acb5a286079d2fad5d5e2e6740161ef11d72,descarteslabs/catalog/tests/test_product.py,TestProduct,test_delete_non_existent,#TestProduct#,284
Before Change
p = Product(
id="ne-my-product", name="Non-existent", client=self.client, _saved=True
)
self.mock_response(
responses.DELETE,
{
"errors": [
{
"detail": "Object not found: ne",
"status": "404",
"title": "Object not found",
}
],
"jsonapi": {"version": "1.0"},
},
status=404,
)
with pytest.raises(DeletedObjectError):
p.delete()
After Change
p = Product(
id="ne-my-product", name="Non-existent", client=self.client, _saved=True
)
self.mock_response(responses.DELETE, self.not_found_json, status=404)
with pytest.raises(DeletedObjectError):
p.delete()
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
Instances
Project Name: descarteslabs/descarteslabs-python
Commit Name: 97c5acb5a286079d2fad5d5e2e6740161ef11d72
Time: 2020-01-20
Author: jaap@descarteslabs.com
File Name: descarteslabs/catalog/tests/test_product.py
Class Name: TestProduct
Method Name: test_delete_non_existent
Project Name: descarteslabs/descarteslabs-python
Commit Name: f1b69bcaa84559b726db4364f5a5bbecbf1a0e31
Time: 2020-02-11
Author: jaap@descarteslabs.com
File Name: descarteslabs/catalog/tests/test_summary.py
Class Name: TestImageSummary
Method Name: test_summary_interval
Project Name: descarteslabs/descarteslabs-python
Commit Name: 97c5acb5a286079d2fad5d5e2e6740161ef11d72
Time: 2020-01-20
Author: jaap@descarteslabs.com
File Name: descarteslabs/catalog/tests/test_product.py
Class Name: TestProduct
Method Name: test_delete_non_existent
Project Name: descarteslabs/descarteslabs-python
Commit Name: f1b69bcaa84559b726db4364f5a5bbecbf1a0e31
Time: 2020-02-11
Author: jaap@descarteslabs.com
File Name: descarteslabs/catalog/tests/test_summary.py
Class Name: TestImageSummary
Method Name: test_summary_interval_defaults