Conditions | 2 |
Total Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 2 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | 1 | from json import dumps |
|
43 | 1 | def deploy(self, revision, changelog, description): |
|
44 | 1 | payload = self.get_payload(revision, changelog, description) |
|
45 | 1 | response = requests.post(self.endpoint, headers=self.headers, json=payload) |
|
46 | |||
47 | 1 | if response.status_code != 201: |
|
48 | 1 | raise NewRelicDeploymentException |
|
49 | |||
50 | return response |
||
51 |