Skip to content

Commit 7c1c379

Browse files
committed
Fixed issues with python2 failing
1 parent ff3bea2 commit 7c1c379

File tree

5 files changed

+12
-6
lines changed

5 files changed

+12
-6
lines changed

.travis.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,14 @@ env:
33

44
language: python
55

6+
python:
7+
- "2.7"
8+
- "3.2"
9+
- "3.3"
10+
- "3.4"
11+
- "3.5"
12+
- "3.6"
13+
614
before_install:
715
- sudo rm /usr/local/bin/docker-compose
816
- curl -L https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-`uname -s`-`uname -m` > docker-compose

gitlab/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ def login(self, email=None, password=None, user=None):
173173
:raise: ValueError
174174
"""
175175
if user is not None:
176-
data = {'login': user, 'password': password}
176+
data = {'login': user, 'pasword': password}
177177
elif email is not None:
178178
data = {'email': email, 'password': password}
179179
else:

gitlab_tests/test_v91/test_common.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from unittest import mock
1+
from mock import Mock
22

33
import requests
44
import responses
@@ -12,7 +12,7 @@
1212

1313
class TestSuccessOrRaise(BaseTest):
1414
def test_success_or_raise_without_error(self):
15-
response = mock.MagicMock()
15+
response = Mock()
1616
response_config = {
1717
'status_code': 200,
1818
'json.return_value': post_users_error

gitlab_tests/test_v91/test_users.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
import os
2-
from unittest import TestCase
3-
41
import responses
52
from requests.exceptions import HTTPError
63

test-requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
-r requirements.txt
22
responses
33
coverage
4+
mock

0 commit comments

Comments
 (0)