Skip to content

Commit c73a843

Browse files
committed
Fix test failures after whitespace cleanup
1 parent cfb0d0d commit c73a843

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

chipflow_lib/pin_lock.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ def lock_pins() -> None:
146146
_map, _ = allocate_pins(k, v, pins)
147147
port_map.add_ports(component, k, _map)
148148

149-
newlock = LockFile(process=process,
149+
newlock = LockFile(process=process_name,
150150
package=package,
151151
port_map=port_map,
152152
metadata=interfaces)

tests/test_init.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ def test_parse_config_file_invalid_schema(self):
124124
with self.assertRaises(ChipFlowError) as cm:
125125
_parse_config_file(config_path)
126126

127-
self.assertIn("Validation error in chipflow.toml", str(cm.exception))
127+
self.assertIn("Syntax error in `chipflow.toml`", str(cm.exception))
128128

129129
@mock.patch("chipflow_lib._ensure_chipflow_root")
130130
@mock.patch("chipflow_lib._parse_config_file")
@@ -136,5 +136,5 @@ def test_parse_config(self, mock_parse_config_file, mock_ensure_chipflow_root):
136136
config = _parse_config()
137137

138138
mock_ensure_chipflow_root.assert_called_once()
139-
mock_parse_config_file.assert_called_once_with(Path("/mock/chipflow/root/chipflow.toml"))
139+
mock_parse_config_file.assert_called_once_with("/mock/chipflow/root/chipflow.toml")
140140
self.assertEqual(config, {"chipflow": {"test": "value"}})

0 commit comments

Comments
 (0)