Skip to content

Commit

Permalink
WIP: Test custom banner in unframed replay only
Browse files Browse the repository at this point in the history
  • Loading branch information
tw4l committed Oct 11, 2022
1 parent 2012455 commit 6e61b87
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/test_auto_colls.py
Original file line number Diff line number Diff line change
Expand Up @@ -285,8 +285,9 @@ def test_add_custom_banner(self):
fh.write(b'<div>Custom Banner Here!</div>')
fh.write(b'\n{{ metadata | tojson }}')

def test_add_custom_banner_replay(self, fmod):
resp = self.get('/test/20140103030321/http://example.com/?example=1', fmod)
def test_add_custom_banner_replay(self):
"""Test custom banner appears in unframed replay."""
resp = self.get('/test/20140103030321/http://example.com/?example=1', None)
assert '<div>Custom Banner Here!</div>' in resp.text

def test_more_custom_templates(self):
Expand Down Expand Up @@ -316,10 +317,9 @@ def test_more_custom_templates(self):
#assert '"some":"value"' in resp.text, resp.text
assert '{&#34;some&#34;:&#34;value&#34;}' in resp.text, resp.text

def test_replay_banner_metadata(self, fmod):
""" Test adding metadata in replay banner (both framed and non-frame)
"""
resp = self.get('/test/20140103030321{0}/http://example.com/?example=1', fmod)
def test_replay_banner_metadata(self):
"""Test adding metadata in custom banner for unframed replay."""
resp = self.get('/test/20140103030321/http://example.com/?example=1', None)
assert '<div>Custom Banner Here!</div>' in resp.text
#assert '"some":"value"' in resp.text
assert '{&#34;some&#34;:&#34;value&#34;}' in resp.text, resp.text
Expand Down

0 comments on commit 6e61b87

Please sign in to comment.