From 8e32db3e843d098d2f3064c2451ab23b7ddd0951 Mon Sep 17 00:00:00 2001 From: Joran Honig Date: Sat, 14 Apr 2018 21:24:50 +0200 Subject: [PATCH] Change check from expected == expected to expected == current --- tests/report_test.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/report_test.py b/tests/report_test.py index 5dda4cce..d7cd37cf 100644 --- a/tests/report_test.py +++ b/tests/report_test.py @@ -38,7 +38,7 @@ class AnalysisReportTest(BaseTestCase): report = _generate_report(input_file) output_current.write_text(_fix_path(_fix_debug_data(report.as_json())).strip()) - if not (output_expected.read_text() == output_expected.read_text()): + if not (output_expected.read_text() == output_current.read_text()): self.found_changed_files(input_file, output_expected, output_current) self.assert_and_show_changed_files() @@ -51,7 +51,7 @@ class AnalysisReportTest(BaseTestCase): report = _generate_report(input_file) output_current.write_text(_fix_path(report.as_markdown())) - if not (output_expected.read_text() == output_expected.read_text()): + if not (output_expected.read_text() == output_current.read_text()): self.found_changed_files(input_file, output_expected, output_current) self.assert_and_show_changed_files() @@ -64,7 +64,7 @@ class AnalysisReportTest(BaseTestCase): report = _generate_report(input_file) output_current.write_text(_fix_path(report.as_text())) - if not (output_expected.read_text() == output_expected.read_text()): + if not (output_expected.read_text() == output_current.read_text()): self.found_changed_files(input_file, output_expected, output_current) self.assert_and_show_changed_files()