Skip to content

Commit

Permalink
Be environment agnostic
Browse files Browse the repository at this point in the history
  • Loading branch information
Filip Todic committed Oct 11, 2017
1 parent 28021c0 commit 3504508
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions tests/test_utils.py
Expand Up @@ -5,7 +5,6 @@
import os
import sys

from django import VERSION as DJANGO_VERSION
from django.apps.config import AppConfig
from django.conf import settings
from django.test import TestCase
Expand Down Expand Up @@ -127,10 +126,8 @@ def test_get_package_locations(self):
Get the directory path containing the installed 3rd party packages (in
this instance the site-packages directory located in .tox/).
"""
end_of_path = ('.tox/py{0}{1}-django{2}{3}/lib/'
'python{0}.{1}/site-packages').format(
PYTHON_VERSION.major, PYTHON_VERSION.minor,
DJANGO_VERSION[0], DJANGO_VERSION[1])
end_of_path = ('/lib/python{0}.{1}/site-packages').format(
PYTHON_VERSION.major, PYTHON_VERSION.minor)
pkg_locations = get_package_locations()
for location in pkg_locations:
self.assertTrue(location.endswith(end_of_path))
Expand Down

0 comments on commit 3504508

Please sign in to comment.