Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
maltaesousa committed Apr 7, 2020
1 parent b9f741e commit 574958f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion back/.env.sample
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ PGPORT=5432
PGPASSWORD=geoshop
PGSCHEMA=geoshop
PGPOSTGRESPASSWORD=postgres
ALLOWED_HOST=localhost
ALLOWED_HOST=localhost,127.0.0.1
GDAL_IN_VENV=True
GDAL_DATA=path\to\.venv\Lib\site-packages\osgeo\data\gdal
ROOTURL=/geoshop2_dev
Expand Down
4 changes: 2 additions & 2 deletions back/api/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def setUp(self):
self.password1 = 'testPa$$word'
self.data = {
'username': self.username,
'password': self.password
'password': self.password1
}

def test_registration(self):
Expand All @@ -25,7 +25,7 @@ def test_current_user(self):
# URL using path name
url = reverse('token_obtain_pair')

user = Identity.objects.create_user(username=self.username, email='[email protected]', password=self.password)
user = Identity.objects.create_user(username=self.username, email='[email protected]', password=self.password1)
self.assertEqual(user.is_active, 1, 'Active User')

# First post to get token
Expand Down

0 comments on commit 574958f

Please sign in to comment.