Index: tests/test_diff_script.py |
=================================================================== |
--- a/tests/test_diff_script.py |
+++ b/tests/test_diff_script.py |
@@ -121,18 +121,17 @@ |
code, err, _ = run_script(str(rootdir.join('latest.txt')), '-o', |
str(diff_dir), *base_no_version) |
assert code == 1 |
assert 'Unable to find Version in ' in err |
def test_write_and_overwrite(rootdir, archived_files, diff_dir): |
test_diff_with_outfile(rootdir, archived_files, diff_dir) |
- latest = re.sub(r'&act=ads_', '! ', BASE) |
- latest = latest + '&adurl=\n' |
+ latest = re.sub(r'&act=ads_', '! ', BASE) + '&adurl=\n' |
rhowell
2018/11/01 20:50:15
Ah, good catch here.
|
rootdir.join('latest.txt').write_text(latest, encoding='utf8') |
run_script(str(rootdir.join('latest.txt')), '-o', str(diff_dir), |
*archived_files) |
assert len(diff_dir.listdir()) == 2 |
for file in diff_dir.visit(): |
with io.open(str(file), encoding='utf-8') as dst: |
result = dst.read() |
assert '- &act=ads_' in result |