Skip to content

Commit

Permalink
Cache KLayout netlist for plot_nets tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nikosavola committed Oct 20, 2023
1 parent 4148d25 commit d901772
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions gplugins/klayout/tests/test_plot_nets.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@
from gplugins.klayout.plot_nets import plot_nets


@pytest.fixture
def klayout_netlist(tmp_path):
@pytest.fixture(scope="session")
def klayout_netlist(tmp_path) -> str:
"""Get KLayout netlist file for `pads_correct`. Cached for session scope."""
c = pads_correct()

gdspath = c.write_gds(gdsdir=tmp_path)
Expand Down

0 comments on commit d901772

Please sign in to comment.