EXPECTED_DB_VERSION = 6
-PATH_DB = PATH_APP_DATA.joinpath('TESTdb.sql')
+PATH_DB = PATH_APP_DATA.joinpath('db.sql')
SqlText = NewType('SqlText', str)
row_normed[-2:] = [indent + row_normed[-1][:-1]] + [')']
schema_rows_normed += ['\n'.join(row_normed)]
retrieved_schema = ';\n'.join(schema_rows_normed) + ';'
- with open(_PATH_DB_SCHEMA, 'r', encoding='utf-8') as f:
- stored_schema = f.read().rstrip()
+ stored_schema = _PATH_DB_SCHEMA.read_text(encoding='utf-8').rstrip()
if stored_schema != retrieved_schema:
diff_msg = Differ().compare(retrieved_schema.splitlines(),
stored_schema.splitlines())