Skip to content

Commit

Permalink
#360 Fix commented test and refarm-site dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
duker33 committed Jul 3, 2018
1 parent c4ee94c commit e393db9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ ua-parser==0.8.0
user-agents==1.1.0
sorl-thumbnail==12.4a1
https://github.com/selwin/django-user_agents/archive/master.zip
https://github.com/fidals/refarm-site/archive/0.1.6.zip
https://github.com/fidals/refarm-site/archive/0.1.3.zip
8 changes: 2 additions & 6 deletions shopelectro/tests/tests_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@

from bs4 import BeautifulSoup
from django.conf import settings
from django.contrib.redirects.models import Redirect
from django.contrib.sites.models import Site
from django.db.models import Q
from django.http import HttpResponse
from django.test import TestCase
Expand Down Expand Up @@ -529,7 +531,6 @@ class Redirects(TestCase):

fixtures = ['dump.json']

@unittest.expectedFailure('rf#140 task will resurrect it')
def test_redirect_on_existing_page(self):
"""DB based redirect from existing url should do, but should not avoid it."""
# take some existing `url_from`
Expand All @@ -538,11 +539,6 @@ def test_redirect_on_existing_page(self):
self.assertEqual(response.status_code, 200)

# create redirect from `url_from` to another existing one - `url_to`
from django.contrib.redirects.models import Redirect
from django.contrib.sites.models import Site

# Site.objects.create(domain='shopelectro.ru', name='shopelectro')

url_to = '/catalog/categories/category-0/'
Redirect.objects.create(
site=Site.objects.first(),
Expand Down

0 comments on commit e393db9

Please sign in to comment.