snapshot_path = '{}.{}.{}'.format(rust_test_path[:-3], snapshot_name, 'html')
try:
with open(snapshot_path, 'r') as snapshot_file:
- expected_str = snapshot_file.read()
+ expected_str = snapshot_file.read().replace("{{channel}}", channel)
except FileNotFoundError:
if bless:
expected_str = None
else:
actual_str = flatten(actual_tree)
- expected_str = expected_str.replace("{{channel}}", channel)
-
# Conditions:
# 1. Is --bless
# 2. Are actual and expected tree different