Skip to content

Commit

Permalink
Update Router path test repository
Browse files Browse the repository at this point in the history
  • Loading branch information
dyohan9 committed Aug 29, 2019
1 parent cbe89f4 commit cd74a48
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions bothub/api/v2/tests/test_repository.py
Original file line number Diff line number Diff line change
Expand Up @@ -1953,7 +1953,7 @@ def request(self, repository, token):
'HTTP_AUTHORIZATION': 'Token {}'.format(token.key),
}
request = self.factory.get(
'/v2/repository/repository/{}/'.format(
'/v2/repository/{}/'.format(
str(repository.uuid)),
**authorization_header)
response = RepositoryViewSet.as_view(
Expand Down Expand Up @@ -2003,7 +2003,7 @@ def test_languages_status(self):
'HTTP_AUTHORIZATION': 'Token {}'.format(self.user_token.key),
}
request = self.factory.get(
'/v2/repository/repository/{}/languagesstatus/'.format(
'/v2/repository/{}/languagesstatus/'.format(
self.repository.uuid),
**authorization_header)
response = RepositoryViewSet.as_view(
Expand Down Expand Up @@ -2087,7 +2087,7 @@ def request(self, repository, token):
'HTTP_AUTHORIZATION': 'Token {}'.format(token.key),
}
request = self.factory.get(
'/v2/repository/repository/{}/train/'.format(
'/v2/repository/{}/train/'.format(
str(repository.uuid)),
**authorization_header)
response = RepositoryViewSet.as_view({'get': 'train'})(request)
Expand Down Expand Up @@ -2126,7 +2126,7 @@ def request(self, repository, token, data):
'HTTP_AUTHORIZATION': 'Token {}'.format(token.key),
}
request = self.factory.post(
'/v2/repository/repository/{}/analyze/'.format(
'/v2/repository/{}/analyze/'.format(
str(repository.uuid)),
data,
**authorization_header)
Expand Down

0 comments on commit cd74a48

Please sign in to comment.