Skip to content

Commit

Permalink
pre-commit job fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Novecento99 committed Jul 23, 2024
1 parent fcfe2b2 commit cd4fa08
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions snap7/util/db.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,9 +160,9 @@ def parse_specification(db_specification: str) -> Dict[str, Any]:
if line and not line.lstrip().startswith("#"):
match = regex.match(line.strip())
if match:
index = match.group('index')
var_name = match.group('var_name')
_type = match.group('_type')
index = match.group("index")
var_name = match.group("var_name")
_type = match.group("_type")
var_name = var_name.strip()

parsed_db_specification[var_name] = (index, _type)
Expand Down
2 changes: 1 addition & 1 deletion tests/test_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,7 @@ def test_db_creation(self) -> None:
self.assertEqual(row["testbool1"], 1)
self.assertEqual(row["testbool2"], 1)
self.assertEqual(row["testbool3"], 1)
self.assertEqual(row["testbool4"], 1)
self.assertEqual(row["testbool4"], 1)
self.assertEqual(row["testbool5"], 0)
self.assertEqual(row["testbool6"], 0)
self.assertEqual(row["testbool7"], 0)
Expand Down

0 comments on commit cd4fa08

Please sign in to comment.