Skip to content

Commit

Permalink
Ruff linting fixes before merge
Browse files Browse the repository at this point in the history
  • Loading branch information
jcadam14 committed Jan 2, 2024
1 parent 09c173d commit fcaba8b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tests/test_csv_to_code_differences.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,15 +60,16 @@ def test_csv_differences(self):
# Excel will strip that first single quote off when saving to a CSV, as it uses
# a starting single quote to signify that the rest of the data is a string.
# This checks if the description we're checking is one of those, and if it doesn't
# already start with a single quote in the CSV just in case someone saves the doc differently than with Excel
# already start with a single quote in the CSV just in case someone saves the doc differently
# than with Excel
if row["validation_id"] in self.add_starting_quote and not row["description"].startswith("'"):
row["description"] = "'" + row["description"]
if (
row["type"].lower() != found_py_validation["type"].lower()
or row["description"] != found_py_validation["description"]
):
# This can be used locally to run a pytest and get a csv of discrepancies, which makes for easier
# correcting of code/csv.
# This can be used locally to run a pytest and get a csv of discrepancies, which makes
# for easier correcting of code/csv.
error_file.write(
f'{row["validation_id"]},{row["type"].lower()},{found_py_validation["type"].lower()},\"{row["description"]}\",\"{found_py_validation["description"]}\"\n'
)
Expand Down

0 comments on commit fcaba8b

Please sign in to comment.