snaptol.io.snapshot_filename

snaptol.io.snapshot_filename#

snaptol.io.snapshot_filename(nodeid, test_dir)[source]#

Generates a snapshot filename based on the test nodeid. Returns a Path object with a ‘.json’ extension.

Parameters:
  • nodeid (str) – The nodeid of the test.

  • test_dir (Path) – The directory where the test lives.

Return type:

Path