Skip to content

Commit e5f24e6

Browse files
committed
Update tests
1 parent 16e39eb commit e5f24e6

2 files changed

Lines changed: 7 additions & 6 deletions

File tree

tests/db.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@
88
basedir = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
99
sys.path.append(basedir)
1010

11-
ustr = u'Тест'
11+
ustr = 'Тест'
1212
foo = 'foo'
1313
from web_pdb import set_trace; set_trace()
1414
bar = 'bar'
1515
ham = 'spam'
16-
name = u'Монти'
16+
name = 'Монти'
1717

1818

1919
def func(spam):

tests/tests.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
import time
2626
from pathlib import Path
2727
from subprocess import Popen
28-
from unittest import TestCase, main, skipIf
28+
from unittest import TestCase, main
2929

3030
from selenium import webdriver
3131
from selenium.webdriver.common.by import By
@@ -37,6 +37,7 @@
3737
IS_PY_310 = sys.version_info[:2] >= (3, 10)
3838
IS_PY_313 = sys.version_info[:2] >= (3, 13)
3939

40+
4041
class SeleniumTestCase(TestCase):
4142
@classmethod
4243
def setUpClass(cls):
@@ -151,18 +152,18 @@ def test_5_unicode_literal(self):
151152
self.stdin.send_keys('n')
152153
self.send_btn.click()
153154
time.sleep(1)
154-
self.assertIn('-> name = u\'Монти\'', self.stdout_tag.text)
155+
self.assertIn('-> name = \'Монти\'', self.stdout_tag.text)
155156

156157
def test_6_entering_unicode_string(self):
157158
"""
158159
Test for entering unicode literal via console
159160
"""
160161
self.stdin.clear()
161-
self.stdin.send_keys('p u\'python - питон\'')
162+
self.stdin.send_keys('p \'python - питон\'')
162163
self.send_btn.click()
163164
time.sleep(1)
164165
stdout_tag = self.browser.find_element(By.ID, 'stdout')
165-
self.assertIn('u\'python - питон\'', stdout_tag.text)
166+
self.assertIn('\'python - питон\'', stdout_tag.text)
166167

167168
def test_7_local_vars(self):
168169
"""

0 commit comments

Comments
 (0)