feat: improve campus bike discovery and add independent live preview
This commit is contained in:
@@ -4,10 +4,8 @@ import unittest
|
||||
|
||||
class RingAllFrontendAuthTests(unittest.TestCase):
|
||||
def test_ring_all_request_sends_session_token(self):
|
||||
source = (
|
||||
Path(__file__).resolve().parents[1] / "static" / "js" / "map.js"
|
||||
).read_text(encoding="utf-8")
|
||||
request_block = source.split('fetch("/api/ring_all"', 1)[1].split(");", 1)[0]
|
||||
source = (Path(__file__).resolve().parents[1] / "static/js/map-account.js").read_text(encoding="utf-8")
|
||||
request_block = source.split('apiFetch("/api/ring_all"', 1)[1].split(");", 1)[0]
|
||||
|
||||
self.assertIn('"Authorization": `Bearer ${authToken}`', request_block)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user