summaryrefslogtreecommitdiff
path: root/yaksh/test_models.py
diff options
context:
space:
mode:
authorPalaparthy Adityachandra2021-03-25 12:24:34 +0530
committerGitHub2021-03-25 12:24:34 +0530
commit4e86fee70bee44fd7426cc25c6b097980699f398 (patch)
tree7bbe043c25746276eadc5bca9a4c43ada69a0e60 /yaksh/test_models.py
parent9cf0dd7abed0db01a676f731f69c3c63026bc2a3 (diff)
parentfd40959d274b7d555f17110b29044d2ce0e0eaf2 (diff)
downloadonline_test-4e86fee70bee44fd7426cc25c6b097980699f398.tar.gz
online_test-4e86fee70bee44fd7426cc25c6b097980699f398.tar.bz2
online_test-4e86fee70bee44fd7426cc25c6b097980699f398.zip
Merge pull request #829 from adityacp/update_django
Bump django from 3.0.7 to 3.1.7
Diffstat (limited to 'yaksh/test_models.py')
-rw-r--r--yaksh/test_models.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/yaksh/test_models.py b/yaksh/test_models.py
index c805c52..019e2fc 100644
--- a/yaksh/test_models.py
+++ b/yaksh/test_models.py
@@ -2611,14 +2611,14 @@ class QRcodeTestCase(unittest.TestCase):
def test_generate_image(self):
# Given
qrcode = self.qrcode
- image_name = 'qrcode/{0}.png'.format(qrcode.short_key)
+ image_name = qrcode.short_key
# When
qrcode.generate_image('test')
# Then
self.assertTrue(qrcode.is_active())
- self.assertEqual(qrcode.image.name, image_name)
+ self.assertIn(image_name, qrcode.image.name)
def test_get_qrcode(self):
# Given