feat: add private journals and centralized Baidu media storage for v0.1.28
This commit is contained in:
+3
-1
@@ -1,5 +1,6 @@
|
||||
"""Isolated regression tests: python -m unittest -v test_app."""
|
||||
import hashlib
|
||||
import atexit
|
||||
import http.client
|
||||
import io
|
||||
import json
|
||||
@@ -16,6 +17,7 @@ os.environ['VISION_DATA'] = _data.name
|
||||
os.environ['VISION_RECORDINGS'] = _data.name + '/recordings'
|
||||
import app
|
||||
import playback
|
||||
atexit.register(app.DB.close)
|
||||
|
||||
|
||||
class WebTests(unittest.TestCase):
|
||||
@@ -105,7 +107,7 @@ class WebTests(unittest.TestCase):
|
||||
self.assertEqual(headers['Cache-Control'], 'no-store')
|
||||
self.assertNotIn(b'__ASSET_VERSION__', body)
|
||||
assets = re.findall(r'(?:src|href)="(/[^"?]+\.(?:js|css)\?v=[^"]+)"', body.decode())
|
||||
self.assertEqual(len(assets), 25)
|
||||
self.assertEqual(len(assets), 27)
|
||||
version = (app.ROOT / 'VERSION').read_text().strip()
|
||||
for asset in assets:
|
||||
self.assertTrue(asset.endswith('?v=' + version))
|
||||
|
||||
Reference in New Issue
Block a user