Skip to content

Commit fcbc3e9

Browse files
committed
make export test non customized so sim.json doesn't continue to change each test run
1 parent 5b8bb36 commit fcbc3e9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/test_circuit.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,9 @@ def test_006_update_multiple_source(self):
8989

9090
def test_007_export(self):
9191
circuit = PyGridSim()
92-
circuit.update_source()
93-
circuit.add_load_nodes()
94-
circuit.add_lines([("source", "load0")])
92+
circuit.update_source(params={"kV": 10})
93+
circuit.add_load_nodes(params={"kV": 5, "kW": 10, "kvar": 2})
94+
circuit.add_lines([("source", "load0")], params={"length": 2})
9595
circuit.solve()
9696
print(circuit.results(["Voltages", "Losses"], export_path="sim.json"))
9797

0 commit comments

Comments
 (0)