Skip to content
This repository has been archived by the owner on Dec 2, 2024. It is now read-only.

Commit

Permalink
fix delete team
Browse files Browse the repository at this point in the history
  • Loading branch information
3nids committed Jul 16, 2020
1 parent 4d8fc77 commit f72b850
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pytransifex/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ def list_resources(self, project_slug) -> list:
return json.loads(codecs.decode(response.content, 'utf-8'))

def delete_team(self, team_slug: str):
url = 'https://rest.api.transifex.com/projects/o:{o}:t:{t}'.format(o=self.organization, t=team_slug)
url = 'https://rest.api.transifex.com/teams/o:{o}:t:{t}'.format(o=self.organization, t=team_slug)
response = requests.delete(url, headers={'Content-Type': 'application/vnd.api+json','Authorization': 'Bearer {}'.format(self.api_key)})
if response.status_code != requests.codes['OK']:
raise PyTransifexException(response)
Expand Down
2 changes: 1 addition & 1 deletion test/test_translation.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def test_creation(self):
repository_url='https://www.github.com/opengisch/pytransifex'
)

self.assertTrue(self.t.project_exists('pytransifex'))
self.assertTrue(self.t.project_exists(self.project_slug))


if __name__ == '__main__':
Expand Down

0 comments on commit f72b850

Please sign in to comment.