UPD: small steps to become python3 compatible.
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
import datetime
|
||||
import os
|
||||
import urllib
|
||||
from django.apps import apps
|
||||
from django.contrib.auth.models import AbstractUser
|
||||
from django.contrib.staticfiles.testing import StaticLiveServerTestCase
|
||||
@@ -9,6 +8,7 @@ from django.urls import reverse
|
||||
from selenium import webdriver
|
||||
from selenium.webdriver.support.ui import WebDriverWait
|
||||
from selenium.webdriver.support import expected_conditions as EC
|
||||
from six.moves.urllib.parse import quote
|
||||
|
||||
|
||||
class AppSetting(object):
|
||||
@@ -252,7 +252,7 @@ class ScreenshotTestCase(SeleniumTestCase):
|
||||
self.screenshot_sequences = {}
|
||||
|
||||
def sanitize_filename(self, location):
|
||||
return urllib.quote(location).replace('/', '--')
|
||||
return quote(location).replace('/', '--')
|
||||
|
||||
def save_screenshot(self, title=None, sequence=None, resize=True):
|
||||
if sequence is None:
|
||||
|
||||
Reference in New Issue
Block a user